Results: finer grain sleep (correction)
David Himber
5432dh at homxb.UUCP
Fri Aug 2 22:40:41 AEST 1985
In my results on how to go about getting a finer grain sleep
one of the suggestions involved opening a tty port and setting
~ICANON and setting VMIN=1 and VTIME=n where n is the number
of 1/10th seconds you wanted. I was told that it would wait
for one character, so here is the correct way:
termio.c_lflag &= ~ICANON;
termio.c_cc[VMIN]= 0;
termio.c_cc[VTIME] = n; where n is the number of 1/10th seconds.
David Himber AT&T-BL hotlb!dxh (201)-949-6323
More information about the Comp.unix.wizards
mailing list