Why am I asking this?
As you can guess, it's mostly for curiosity. But why did the curiosity spring up in my mind?
Well, there's been a moment when I noticed that I was not happy that after I'd run
clear to clean the terminal screen, I had then to move my eyes from the bottom of the screen, where the prompt ended up after sereral commands and their outputs, to the top of the screen.
That's when I inserted this in my
tput cup $LINES
alias clear='clear && __prompt_to_bottom_line'
For me, having the prompt at the bottom after running
clear means that the prompt is always at the bottom, never at the top. Everything else is like normal.
What about others?
I think I'm not the only one feeling this necessity. Take this question, for instance: the user wanted the prompt to be always at the top, and the output below it, but in reverse order (but one output from one command, even if multi-line, is not reversed, clearly).
If you think about it, what that user expects to see on screen is exactly the
tac of what I expect (except that, again, multi-line outputs are not reversed).
So my question is
why was the terminal designed with this non-uniform behavior? By non-uniform I mean that it starts in a situation that's never gonna be repeated unless one
clears, and that's gonna change command after command, with the prompt travelling down-screen, eventually with the prompt ending up in a "stable" position at the bottom of the screen, from where it won't move anymore, unless one
Wouldn't the line always at the top/bottom with outputs pushed downward/upward be a more eye-friendly design?