Line Discipline or Termios lacks ?
Angelo Fraietta
afraiett at bigpond.net.au
Fri Sep 19 02:15:26 UTC 2003
I don't know if this helps anyone by I am setting the port using termios
on pc386 as follows
_file = open (port_name, O_RDWR);
if (_file >= 0)
{
ret = true;
// let us set the terminal up
tcgetattr(_file, &ts);
ts.c_lflag &= ~(ICANON | ISIG | ECHO | ECHOE |ECHOK | ECHONL
| ECHOPRT);
ts.c_cc[VMIN] = 1;
ts.c_cc[VTIME] = 0;
ts.c_oflag &= ~OPOST;
ts.c_iflag &= ~ICRNL;
ts.c_iflag &= ~BRKINT;
ts.c_iflag |= IGNBRK;
ts.c_iflag &= ~CRTSCTS;
ts.c_iflag &= ~(IXON | IXOFF | IXANY);
tcsetattr(_file, TCSANOW, &ts);
--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
http://www.users.bigpond.com/angelo_f/
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)
More information about the users
mailing list