使用 运行 rails 服务器清除 window 中的控制台的最佳方法是什么?

What is the best way to clear the console in a window with a running rails server?

我有 iTerm2,我可以右键单击 运行 服务器 window 和 select "Clear Buffer" - 但我不确定这是正确的解决方案。我想保留我的历史记录,我只是不想滚动浏览服务器记录的所有输出。如果不清楚,我深表歉意。以下是我希望能够定期清除的输出类型的 gif:example of output that i want to clear

cmd-K 将为您清除缓冲区和回滚