Daily Archives: Thursday, 2 August, 2012

Read the current terminal size from within bash

I’ve long wondered about a clean way to read terminal (xterm) escape sequence responses, especially from script/the command line.  I’ve just come across a need to query the terminal size, and so it was time to go digging.

Posted in Uncategorized | 3 Comments