The most important terminal commands are
[code]\n
\r
\e[30m thru \e[37m
\e[40m thru \e[47m
\e[1m
\e[0m
\e[2J
\e[?25h and \e[?25l
\e[n;mH with n and m as coordinates
\e[s and \e[u
\e[n;mr with n and m as the top and bottom row[code]
That last one is pretty killer.
inb4 curses. You may as well use a fucking web browser.