--- rxvt-unicode/src/init.C 2010/04/04 18:59:19 1.264 +++ rxvt-unicode/src/init.C 2010/06/14 15:47:52 1.267 @@ -176,7 +176,7 @@ "rgb:00/ff/ff", // 6/14: bright cyan (Cyan) "rgb:ff/ff/ff", // 7/15: bright white (White) -#ifndef USE_256_COLORS +#if !USE_256_COLORS // 88 xterm colours "rgb:00/00/00", "rgb:00/00/8b", @@ -1535,11 +1535,15 @@ /* * 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)); + for (int i = 0; i < NCCS; i++) + tio->c_cc[i] = VDISABLE; tio->c_cc[VINTR] = CINTR; tio->c_cc[VQUIT] = CQUIT; @@ -1569,16 +1573,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