Added more info on screen detection

This commit is contained in:
Michiel Broek 2006-02-05 11:20:59 +00:00
parent 964fcc1b82
commit da37ef7bbb

View File

@ -105,6 +105,14 @@ int main(int argc, char **argv)
if (ioctl(1, TIOCGWINSZ, &ws) != -1 && (ws.ws_col > 0) && (ws.ws_row > 0)) {
cols = ws.ws_col;
rows = ws.ws_row;
} else {
Syslog('b', "Could not get screensize using ioctl() call");
if (getenv("LINES") != NULL) {
rows = atoi(getenv("LINES"));
} else {
Syslog('b', "Could net get screensize from environment too");
}
/* use linux/vt.h + ioctl VT_RESIZE */
}
if ((rc = rawport()) != 0) {