QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Setting attributes on terminal using tcsetattr() |
Ref. No. |
QNX.000008747 |
Category(ies) |
Development |
Issue |
When using tcsetattr() to set the current terminal control settings,
tcsetattr( fd, TCSADRAIN, &termios_p );
The 1st time we issue, it works, but the next time this is invoked the terminal locks up. |
Solution |
You need to set the optional_actions parameter to TCSANOW, to make the change immediately, instead of TCSADRAIN, which waits until all currently written data has been transmitted.
See Also: dev_mode(), errno, select(), tcgetattr().
|
|