Initial commit
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.
Added terminal_size_get function
Made terminal_output use stdout and flush
Changed printf to terminal_output
Change terminal_output, terminal_output_formatted

terminal_output_formatted implements previous terminal_output.
terminal_output uses raw IO.
Changed other functions to use these.
Added terminal_echo_disable, terminal_echo_enable
Added terminal_input_buffering_enable/disable
Added terminal_input_raw_enabled/disable
Added terminal_get_key