Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>com_cts()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_CTS()
 Queries the Clear To Send (CTS) status
------------------------------------------------------------------------------
 Syntax

     COM_CTS(<nComPort>) --> lCTSActive

 Argument

     <nComPort>  Designates the port (1 to 4) for which CTS is tested.

 Returns

     A return of .T. indicates that CTS is active (MSR Bit 5 = 1).  A return
     of .F. indicates that CTS is inactive (MSR Bit 5 = 0).

 Description

     COM_CTS() lets you check the Clear To Send (CTS) signal within a
     program.  Whether CTS is used for a hardware handshake or for other
     purposes, depends on the external hardware that you use.

 Note

     .  If Delta-CTS is required, you must use COM_MSR().

 Example

     DO WHILE .NOT. COM_CTS(1)           // Wait for CTS
        * ...
     ENDDO

     COM_SEND(1, "Good Morning")         // Transmit text


See Also: COM_MSR() COM_HARD()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson