But it has no effect if +lkhflow option has been
previously set with stty utility.
How do I clear +lkhflow from within a C program?
Is the stty source available somewhere?
But it has no effect if +lkhflow option has been
previously set with stty utility.
How do I clear +lkhflow from within a C program?
Is the stty source available somewhere?
thanks
Try something like this (off the top of my head):
unsigned short qflag ;
int fd ;
struct termios tp ;
But it has no effect if +lkhflow option has been
previously set with stty utility.
How do I clear +lkhflow from within a C program?
Is the stty source available somewhere?
You need to unlock first - i.e. throw this into the mix below.
termios.c_qflag &= ~TC_PROTECT_HFLOW;
You may want to re-lock afterwards - use a separate tcsetattr() call.
If you ask why the the lock is used - I don’t remember the details.
Someone else ???
But it has no effect if +lkhflow option has been
previously set with stty utility.
How do I clear +lkhflow from within a C program?
Is the stty source available somewhere?