TermSize is an example program written with BarnabasBox. It displays the size of the current terminal emulator window as the number rows and columns and automatically updates when resized. It is not advised to use this program directly in a tty.
This is a demonstration of BarnabasBox usage and mainly serves as such. To get the size of the current terminal emulator, use the bsize(int *, int *) function in BarnabasBox.
- BarnabasBox (duh.)
- Dependencies of BarnabasBox.
Makefile incoming.
Change the size of your terminal emulator to automatically see different numbers appear on the screen. When yout terminal window is smaller than 1 row and 5 columns, the program will quit.