cons.saver limit on the maximum number of lines/columns
Pavel Tsekov
ptsekov at gmx.net
Fri Jul 8 09:31:46 UTC 2005
Hello,
While investigating the recent bug report posted by Thomas Zajic
regarding cons.saver I came across the following code:
winsz.ws_col = winsz.ws_row = 0;
if (ioctl (console_fd, TIOCGWINSZ, &winsz) < 0
|| winsz.ws_col <= 0 || winsz.ws_row <= 0
|| winsz.ws_col >= 256 || winsz.ws_row >= 256)
die ();
Do you think that this limitation is really needed ? Might it be
that it is related to the SLang limitation ? Looking through the
changes made to cons.saver.c I've found out that this check was
introduced by Jakub Jelinek on 2004/10/05.
More information about the mc-devel
mailing list