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));

TCFlush is working now. Thank you.

my problem with fpioctl was the third parameter qsel. In my first
attempts I tried something like
  fpioctl(fd,TCIOflush,@qsel);
which does compile with no warning but does not work.

the pointer type cast is the correct way:
  fpioctl(fd,TCIOflush,pointer(qsel));

Regards, Bernd.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to