Add method for getting terminal window size