我想知道是否有办法设置 linux 或 mac 终端,以便您始终在终端屏幕的顶部输入命令,而以前的命令在其下方。
例子
-----Screen top----
>EnterCommand
>PreviousCommand 1
>final line of Previous Command 1 output
>second to final line of previous command 1 output
-----Bottom of screen-----
谢谢!
最佳答案
standard *nix terminal driver 中没有内置这样的功能;必须专门编写终端应用程序以将换行符和换行符转换为向上运动而不是向下运动。请注意,这可能会破坏一些 TUI应用程序,因此不建议将它们与此类终端应用程序一起使用。
关于linux - linux 或 mac 终端命令可以向上滚动而不是向下滚动吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26309073/