determine screen size using terminal escapes
debugging extra line outputs