XTerm is in no way able to start up eight-bit-clean by default under
NetBSD and dishonors the eightBitInput resource.
Entering "stty -parenb cs8 -istrip" or something thelike will help,
but is annoying all the time.
Changing the defaults in /usr/include/sys/ttydefaults.h to "CS8" (etc.pp.)
and recompiling the kernel and Xterm does not help! (Instead it will
make "telnet localhost" start up in binary mode, and then, if in cbreak
mode, the Enter key isn't handled properly by the trn newsreader. Ok,
telnet somewhere is defined to run 7bit by default...)
To get to the point, what does help, is removing the bug from the XTerm
source.
In the file main.c, one should change the following code:
---------------------------------------
#ifdef sony
if (screen->input_eight_bits)
lmode |= LPASS8;
else
lmode &= ~(LPASS8);
jmode &= ~KM_KANJI;
#endif /* sony */
---------------------------------------
into:
---------------------------------------
if (screen->input_eight_bits)
lmode |= LPASS8;
else
lmode &= ~(LPASS8);
#ifdef sony
jmode &= ~KM_KANJI;
#endif /* sony */
---------------------------------------
--
Write to: Peter Much * Koelnische Str. 22 * D-34117 Kassel * +49-561-774961