I'd like to know my current xterms' window sizes. I'm using Cygwin. Is there a command to just print that to the prompt?
If it's an actual xterm, the following should work (tested on a PuTTY session, since I don't have Cygwin installed at the moment):
In my case, that returned
All the commands involved should be standard in Cygwin or any UNIX-like system. I'd be very surprised if they didn't work equally well in a Cygwin console prompt.
Gives you the size in characters:
Whether it works in cygwin? You tell us!