man ncurses
There is a package called ncurses that does all that screen management for a terminal (or terminal window).
man console_codes
If you don't want to use curses, you can set your TERM env variable to something like vt100 and use the standard ascii escape sequences in your printf statements or whatever output statements you use.
|