That's sort of a raw, hardcoded (and unreliable) way of doing what probably ought to be done with Curses. What it's doing is printing terminal control codes without much regard for what the terminal is. Nearly every terminal today responds to most of the same codes, so it probably won't break much, but using a library to handle those functions will be easier to read and more reliable anyway.
In reply to Re: Printing Escape Characters
by kyle
in thread Printing Escape Characters
by Metarika
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |