I'm trying to figure out why dosemu 1.0.0 won't run with the TERM environment
variable set to "dumb". Here's a gdb trace of the problem. Is there
someone with Slang knowledge that can help?
thanks,
galen
(gdb) show env
... snip ...
TERM=dumb
(gdb) run
Starting program: /home/galens/rpm_tar/dosemu-1.0.0/bin/dos -F etc/config.test
Running unpriviledged in low feature mode
kernel CPU speed is 650052927 Hz
Running on CPU=586, FPU=1
Breakpoint 1, slang_keyb_init () at keyb_slang.c:1325
1325 k_printf("KBD: slang_keyb_init()\n");
(gdb) next
1328 kbd_fd = STDIN_FILENO;
(gdb)
1329 save_kbd_flags = fcntl(kbd_fd, F_GETFL);
(gdb)
1330 fcntl(kbd_fd, F_SETFL, O_RDONLY | O_NONBLOCK);
(gdb)
1332 if (tcgetattr(kbd_fd, &save_termios) < 0) {
(gdb)
1362 buf = save_termios;
(gdb)
1363 buf.c_iflag &= (ISTRIP | IGNBRK | IXON | IXOFF);
(gdb)
1366 buf.c_cflag &= ~(CLOCAL | CSIZE | PARENB);
(gdb)
1367 buf.c_cflag |= CS8;
(gdb)
1368 buf.c_lflag &= 0; /* ISIG */
(gdb)
1369 buf.c_cc[VMIN] = 1;
(gdb)
1370 buf.c_cc[VTIME] = 0;
(gdb)
1371 erasekey = buf.c_cc[VERASE];
(gdb)
1376 if (tcsetattr(kbd_fd, TCSANOW, &buf) < 0
(gdb)
1386 SLang_Exit_Error_Hook = sl_exit_error;
(gdb)
1387 if( !DOSemu_Slang_Got_Terminfo )
(gdb)
1389 SLtt_get_terminfo ();
(gdb)
ERROR: Your terminal lacks the ability to clear the screen or position the
cursor.
Program exited with code 040.
(gdb)