fix height and width for non-ttys