disabling parity in C program?

David J. Camp david at wubios.wustl.edu
Thu Apr 6 08:45:54 AEST 1989


I am working on a C program to print a file on the printer attached to
my vt100 terminal.  Actually it is an IBM-PC running Kermit.  I know
what codes to send to turn the printer on and off.  I open the "dev/tty"
file to fool any program which uses my program into passing the
characters through (i.e I do not merely send them to stdout or stderr).

Now I want to force the characters to be sent with 8 bits, no parity.
The parity bit causes my Epson to print in italics, and really confuses
an HP LaserJet.  I cannot configure my terminal for even parity for
other reasons.  I studied the man pages for a long time, trying to
figure out what system call would set the outgoing characters to no
parity, without success.  If anyone can help me, I would appreciate it.

I am using a Sun 3/260 running SunOS 4.0.1.  -David-

-- 
Bitnet:   david at wubios.wustl                ^      Mr. David J. Camp
Internet: david%wubios at wucs1.wustl.edu    < * >    Box 8067, Biostatistics
uucp:     uunet!wucs1!wubios!david          v      660 South Euclid
Washington University Medical School               Saint Louis, MO 63110



More information about the Comp.unix.questions mailing list