Can linux or mac terminal commands scroll up and not down?

I am wondering if there is a way to install a linux or mac terminal so that you always enter the commands at the top of the terminal screen and the previous commands below.

Example

-----Screen top----
>EnterCommand
>PreviousCommand 1
>final line of Previous Command 1 output 
>second to final line of previous command 1 output
-----Bottom of screen-----

      

Thank!

+3


source to share


2 answers


This function is not built into the standard * nix terminal driver ; the terminal application must be specially written for newlines and line wrapping in an upward motion instead of downward. Note that this will most likely break several TUI applications , so it is not recommended to use them with such a terminal application.



0


source


This seems to be very close to what you are asking:

https://github.com/swirepe/alwaysontop

To use it to run:

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

      



If you decide what you like, just post it to your .bashrc or .bash_profile with something like:

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

      

Hope it helps!

0


source







All Articles