lkml.org 
[lkml]   [1999]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.056 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site