--- rxvt-unicode/src/init.C 2010/05/23 00:02:52 1.265 +++ rxvt-unicode/src/init.C 2010/06/14 15:50:08 1.268 @@ -1535,11 +1535,16 @@ /* * standard System V termios interface */ - if (tcgetattr (STDIN_FILENO, tio) < 0) + // does not work as stdin is not a tty + // if (tcgetattr (STDIN_FILENO, tio) < 0) + if (1) { // return error - use system defaults, // where possible, and zero elsewhere memset (tio, 0, sizeof (struct termios)); + if (VDISABLE) + for (int i = 0; i < NCCS; i++) + tio->c_cc[i] = VDISABLE; tio->c_cc[VINTR] = CINTR; tio->c_cc[VQUIT] = CQUIT; @@ -1569,16 +1574,6 @@ } tio->c_cc[VEOF] = CEOF; - tio->c_cc[VEOL] = VDISABLE; -# ifdef VEOL2 - tio->c_cc[VEOL2] = VDISABLE; -# endif -# ifdef VSWTC - tio->c_cc[VSWTC] = VDISABLE; -# endif -# ifdef VSWTCH - tio->c_cc[VSWTCH] = VDISABLE; -# endif # if VMIN != VEOF tio->c_cc[VMIN] = 1; # endif