On Fri, 21 Apr 2006 22:28:54 +0100
Ian bell <[EMAIL PROTECTED]> wrote:

> 1. I am connecting to an external microcontoller development board by 
> a serial interface. I need to be able to set this interface non 
> blocking. I can see how to open the serial interface using the serial 
> unit but it is not clear how to set it non blocking.

Using BaseUnix, and fpfcntl (which is fcntl in unix) perhaps ?
 
> 2. I need to respond to the occurence of input on the serial port. 
> This is trivial in Tcl - fileevent FileDescriptor FunctionName - how 
> do I achieve this in fpc?

Try http://wiki.lazarus.freepascal.org/index.php/Main_Loop_Hooks.

Micha

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to