* slint.c (slang_init): Allow upto 512 lines and cols if the

SLang library can handle it.
This commit is contained in:
Roland Illig 2004-11-07 12:48:48 +00:00
parent d5da4d6b94
commit a5fefdbd71
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-07 Leonard den Ottolander <leonard * den ottolander nl>
* slint.c (slang_init): Allow upto 512 lines and cols if the
SLang library can handle it.
2004-11-07 Roland Illig <roland.illig@gmx.de>
* key.c (use_8th_bit_as_meta): Use 8bit input as default.

View File

@ -183,7 +183,10 @@ slang_init (void)
* (as of S-Lang 1.4.4). Detect it and abort. Also detect extremely
* small, large and negative screen dimensions.
*/
if ((COLS < 10) || (LINES < 5) || (COLS > 255) || (LINES > 255)) {
if ((COLS < 10) || (LINES < 5) ||
(SLang_Version < 10407 && (COLS > 255 || LINES > 255)) ||
(SLang_Version >= 10407 && (COLS > 512 || LINES > 512))) {
fprintf (stderr,
_("Screen size %dx%d is not supported.\n"
"Check the TERM environment variable.\n"),