Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is a bit of a weird question and I'm not sure that there is any easy answer to it but I am very interested in finding a solution.

So when I work on a linux machine via a console I find that I am constantly staring at the bottom of the screen, as once you have executed a bunch of commands text fills toward the bottom. Now I find that this is decidedly not good for my neck and it would be far better if instead of scrolling to the bottom, the text would scroll to the top instead.

So does anyone out there know if there is a way to reverse the direction text appears in a console?

(note that i am aware of the clear command)

Example:
default behaviour

user@machine:~$ command 1  
user@machine:~$ command 2  
user@machine:~$ command 3  
user@machine:~$ __active_prompt__  

desired behaviour

user@machine:~$ __active_prompt__  
user@machine:~$ command 3  
user@machine:~$ command 2  
user@machine:~$ command 1 

Running Kubuntu 10.04 using Konsole

I realise this is an odd question, thanks for any help.

share|improve this question
    
Why not just adjust your monitor height so that you arn't bending your neck to be able to see the bottom of the screen? –  Zypher Jun 18 '10 at 1:35
3  
because they are adjusted to OH&S standards already, which is perfect unless you constantly have to look to the very bottom of the screen. –  radman Jun 18 '10 at 4:00

2 Answers 2

This would be a very odd behavior. The main reason is this: How would it handle the output from any command which generates several lines, such as ls or cat? If you have a screen which scrolls opposite of normal, it would print cat ./foo in reverse order. I think your best option is to go with the comment left by Zypher and just move the monitor. Standards are great, but trivial standards which cause the opposite of their intent are worthless. Do what works best for you in your situation.

share|improve this answer
3  
Agreed. I read the OH&S "standard" about having your eyes level with the top of the monitor and nearly laughed - most of the time my eyes are reading at the bottom of a terminal or webpage, not the top (who scrolls down an entire page to read, anyway?). Apart from that, I clear my terminals once I'm done with a specific task (which radman uses already). –  Andrew Jun 18 '10 at 5:27

I've been thinking about this for a while. It seems to me that you should hack the bash source so that carriage return moves the prompt up instead of down. I bet this is a simple hack once you find the right place in the source.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.