[fpc-pascal] Flushing serial inque on Linux

Marco van de Voort marcov at stack.nl
Thu Feb 22 20:55:09 CET 2007


> 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.

termio.tcflush but that does 

fpioctl(fd,TCIOflush,pointer(qsel));

> 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.

baseunix, but there is some terminal stuff abstracted from exact *nix
version in termio.



More information about the fpc-pascal mailing list