linux - linux 或 mac 终端命令可以向上滚动而不是向下滚动吗?

标签 linux macos command-line terminal

我想知道是否有办法设置 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/

相关文章:

linux - 使用 echo >> 会产生不一致的结果

linux - Bash 脚本也在目录内创建符号链接(symbolic link)

linux - 奇怪的文件 : *. dll.a * .la 它们是什么? (VLC windows build)如果可能的话如何在Windows上使用它们?

xcode - 减小 cocoa 应用程序中图像的大小

php - Windows 上的 PHP 诅咒

command-line - Team City Command Line Build Runner

linux - Bash:仅使用参数扩展查找和替换

java - Visio转SVG转换器

macos - 在 Git 存储库中切换分支时,文件系统中修改的日期不会更改

java - 如何在命令行中指定一个文本文件