make window maximization terminal emacs friendly