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, 7 Dec 1999, 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.
>

Then bash must muck with it, itself. There isn't anything in the drivers
that would care. I use STDIN_FILENO for binary file-transfer in several
programs. Just set to 8-bits as above and run with it.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
Seconds : 2094319 (until Y2K)


-
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.211 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site