Setting terminal size?

5 views
Skip to first unread message

Ivan

unread,
Feb 24, 2012, 5:43:39 PM2/24/12
to SystemsProgramming2011_12
Is it possible to set the window size of the terminal from program
code? If yes, how?

Joseph Cordina

unread,
Feb 25, 2012, 8:36:50 AM2/25/12
to systemsprogr...@googlegroups.com
Hi,
   do not worry too much about that, assume that the window can hold all squares (i.e 100 wide, 40 high). You can assume also that there are some columns and some rows to spare. Yet, If you want to make sure you can control dimensions, then you need to define a window in ncurses of the required size.

Regards

Joseph Cordina

Ivan

unread,
Feb 25, 2012, 9:08:23 AM2/25/12
to SystemsProgramming2011_12
Thanks
Reply all
Reply to author
Forward
0 new messages