set terminal properties prior to urwid's mainloop

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>