On Sat, Mar 12, 2005 at 03:42:33PM +0000, Jochen Voss wrote: > Hello Thomas, > > On Tue, Mar 08, 2005 at 11:06:03AM -0500, Thomas Dickey wrote: > > On Tue, Mar 08, 2005 at 03:46:56PM +0000, Jochen Voss wrote: > > > Hello Thomas, > > > > > > On Tue, Mar 08, 2005 at 10:20:14AM -0500, Thomas Dickey wrote: > > > > thanks. Actually I had forgotten the TCSETA detail, but noticed the > > > > hardware platform which seems to be relevant as well. > > > Is the TCSETA ioctl documented in some publicly accessible place? > > > > For instance Solaris' termio manpage says this: > > > > TCSETA > > The argument is a pointer to a termio structure. > > Those terminal parameters that can be stored in a ter- > > mio structure are set from the values stored in that > > structure. The change is immediate. > And do you know what it means to set the CS7 flag in c_cflags?
The 8th bit can be ignored in that case. By itself, that doesn't make it zero. Checking the termio manpage on Solaris (which is more complete than Linux's), we see If ISTRIP is set, valid input characters are first stripped to seven bits, otherwise all eight bits are processed. > The libc manual just sais "This specifies seven bits per byte", > which sounds like it should never be set on todays hardware? > Maybe the call is perfectly right to return an error code for > this setting? Not exactly: it is redundant for xterm to set it in this case, but since the header files define it, it should be supported by the terminal driver (which is independent of the hardware). It's been a while since I noticed, but it used to be the case that 8-bit paths for telnet weren't guaranteed. For instance SunOS 4.x's telnet didn't do that. However, that's not the reason why I didn't change it. It was because the single resource setting eightBitInput does two functions (adding an ESC versus mapping meta+key to 128+key), so changing the CS7/CS8 setting wouldn't have affected the result. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
pgpFAwTehSo5f.pgp
Description: PGP signature