Friday, May 06, 2011

[nnerdjxd] Middle of the screen terminal

Create a terminal application in which the prompt stays nicely in the center of the window instead of at the bottom.  Text scrolls off the top, reappears at the bottom, scrolls to the middle, and then finally disappears for good.

An even more complicated version tries to keep the prompt centered horizontally as well as vertically.  The screen is divided into 4 quadrants.

4 1
3 2

Text loops from 1 to 2 as before, then reappears at the bottom of 3 and scrolls through the top of 4 with no break.

Making pagers like `less` and `more` behave "properly" will be a challenge.

No comments :