Messages in this thread | | | Date | Wed, 8 Dec 1999 02:33:49 +0100 | From | Guest section DW <> | Subject | Re: How is 8-bit character support enabled for the TTY driver |
| |
On Tue, Dec 07, 1999 at 06:14:41PM -0500, Richard B. Johnson wrote: > On Tue, 7 Dec 1999, Jeff V. Merkey wrote: > > > > #include <termios.h> > > > #include <ioctls.h> > > > > > > struct termios term; > > > ioctl(1, TCGETS, &term); > > > term.c_cflag |= CS8; > > > ioctl(1, TCSETS, &term); > > > > > > The terminal is now 8-bit clean. > > > > > > Cheers, > > > Dick Johnson > > > > > > Sorry Dick, but this doesn't work with bash. It still outputs > > characters below 127. I tried thi already. > > Then bash must muck with it, itself.
Don't worry. Jeff has an interesting way of pointing elsewhere where some code is to be blamed. "This doesn't work with bash" translates into "Nothing is wrong with bash, so fiddling with bash settings does not repair my code."
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |