Re: How is 8-bit character support enabled for the TTY driver

Brendan Cully (brendan@kublai.com)
Tue, 7 Dec 1999 18:21:28 -0500


On Tuesday, 07 December 1999 at 15:25, Jeff V. Merkey wrote:
> "Richard B. Johnson" wrote:
> >
> > On Wed, 8 Dec 1999, Khimenko Victor wrote:
> >
> > > Whomever owns the TTY drivers, how do you turn the damn thing on to
> > > allow you to display characters above 127?
> > [SNIPPED]
> >
> > #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.

I think that's due to readline. I have this in my .inputrc:

set meta-flag on
set output-meta on
set keymap emacs
set convert-meta off

I think the first two lines may help.

-
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/