[fpc-pascal] Flushing serial inque on Linux
mueller.b at gmx.net
Thu Feb 22 11:45:54 CET 2007
I am trying to flush the serial inque on Linux with no success. So far I
procedure FlushInQue(lHandle: Longint);
Fpioctl(lHandle, TCFLSH, @QueSelector);
I can read incoming characters, so the connection is ok and lHandle is
valid. I tried TCIOFLUSH as another QueSelector and tried also ioctl
instead of Fpioctl.
BTW, I am new to Linux (Ubuntu 6.06) and not really sure, which units I
have to include: baseunix, oldlinux unix. I tried several combinations.
More information about the fpc-pascal