terminal size in a platform agnostic fashion