2014-10-10 45 views
3

我想知道是否有方法设置一个Linux或Mac终端,以便您始终在终端屏幕的顶部输入命令,并且之前的命令在它下面。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----- 

谢谢!

回答

0

这样的功能没有内置到standard *nix terminal driver;一个终端应用程序将不得不专门编写来翻译换行符和换行,而不是向下移动。请注意,这可能会破坏多个TUI应用程序,因此不建议将它们与这样的终端应用程序一起使用。

0

这似乎相当接近到什么你问:

https://github.com/swirepe/alwaysontop

要使用它,运行:

git clone https://github.com/swirepe/alwaysontop.git 
cd alwaysontop/ 
source alwaysontop.sh 

如果你决定你喜欢它只是源它在你的.bashrc或.bash_profile与类似的东西:

echo "source ~/alwaysontop/alwaysontop.sh" >> ~/.bashrc 

希望帮助小号!

+0

这看起来正是我所需要的,但它不适合我。我发布了一个问题。我们会看看是否有任何东西出来。 – WestonE 2014-10-13 20:50:07

相关问题