terminal: contains code to query the terminal size and cursor coordinates