Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Parity for POSIX::Termios

Status
Not open for further replies.

sharvey99

Programmer
Aug 24, 2000
16
GB
I am trying to set an interface setting of
7 data 1 stop even parity (71E) using POSIX::termios.

I am having little success but feel it's just down to syntax.

$Term = setcflag->(PARENB | CSIZE | CS7);

everything else about the way I am setting the term looks good and works to a 81N setup which I guess is the default.

Can anyone tell me wether I am either doing it incorrectly or have not done enough to set 7 data 1 stop even parity.

Tanx in advance

Sharvey
 
The syntax should be:

$Term->setcflag("PARENB | CSIZE | CS7");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top