command line - Terminal with output scrolling down - Ask Ubuntu


i have decided test double monitors in vertical configuration, , came across problem had never had before: input line on terminal far down screen!

i wondering if there way make output scroll downwards, input line stays @ top.

e.g., normal terminal view looks this:

ping 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes 8.8.8.8: icmp_req=1 ttl=46 time=28.3 ms 64 bytes 8.8.8.8: icmp_req=2 ttl=46 time=13.7 ms 64 bytes 8.8.8.8: icmp_req=3 ttl=46 time=19.1 ms 64 bytes 8.8.8.8: icmp_req=4 ttl=45 time=20.8 ms 64 bytes 8.8.8.8: icmp_req=5 ttl=45 time=15.6 ms 64 bytes 8.8.8.8: icmp_req=6 ttl=46 time=15.3 ms 64 bytes 8.8.8.8: icmp_req=7 ttl=46 time=15.3 ms 64 bytes 8.8.8.8: icmp_req=8 ttl=45 time=14.3 ms 64 bytes 8.8.8.8: icmp_req=9 ttl=45 time=14.3 ms 64 bytes 8.8.8.8: icmp_req=10 ttl=45 time=15.5 ms 64 bytes 8.8.8.8: icmp_req=11 ttl=45 time=16.9 ms 64 bytes 8.8.8.8: icmp_req=12 ttl=45 time=16.3 ms 64 bytes 8.8.8.8: icmp_req=13 ttl=45 time=20.0 ms ^c --- 8.8.8.8 ping statistics --- 13 packets transmitted, 13 received, 0% packet loss, time 12017ms rtt min/avg/max/mdev = 13.773/17.391/28.343/3.812 ms me@my_computer:~$  

and instead have this:

me@my_computer:~$  rtt min/avg/max/mdev = 13.773/17.391/28.343/3.812 ms 13 packets transmitted, 13 received, 0% packet loss, time 12017ms --- 8.8.8.8 ping statistics --- ^c 64 bytes 8.8.8.8: icmp_req=13 ttl=45 time=20.0 ms 64 bytes 8.8.8.8: icmp_req=12 ttl=45 time=16.3 ms 64 bytes 8.8.8.8: icmp_req=11 ttl=45 time=16.9 ms 64 bytes 8.8.8.8: icmp_req=10 ttl=45 time=15.5 ms 64 bytes 8.8.8.8: icmp_req=9 ttl=45 time=14.3 ms 64 bytes 8.8.8.8: icmp_req=8 ttl=45 time=14.3 ms 64 bytes 8.8.8.8: icmp_req=7 ttl=46 time=15.3 ms 64 bytes 8.8.8.8: icmp_req=6 ttl=46 time=15.3 ms 64 bytes 8.8.8.8: icmp_req=5 ttl=45 time=15.6 ms 64 bytes 8.8.8.8: icmp_req=4 ttl=45 time=20.8 ms 64 bytes 8.8.8.8: icmp_req=3 ttl=46 time=19.1 ms 64 bytes 8.8.8.8: icmp_req=2 ttl=46 time=13.7 ms 64 bytes 8.8.8.8: icmp_req=1 ttl=46 time=28.3 ms ping 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 

i not find such documentation or question on forums. if has idea, please let me know! (also if think it's not possible)

thanks!

ps: i'm using ubuntu 12.04

i found 1 nice tip can start. must play bash:

to set up:

$ bash    # try in subshell since ^c seems cause exit $ f () { sed "1s/^/$(tput cup 0 0)/;s/^/$(tput il1)/"; } $ prompt_command='tput cup 0 0;tput il1; echo' $ exec > >(f) 

press enter 1 time , it's ready try. output , prompt out of order , there may other weirdness, it's kind of interesting thing try.

source: reversed terminal / command line window.

see also:


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User