another way to find the terminal size