Added terminal functions

I'm going to use these to make everything a little simpler.
NCurses is great but a little heavy and crufty API-wise.