[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_DOSCON()
 Provides screen output through DOS (ANSI.SYS terminal emulation)
------------------------------------------------------------------------------
 Syntax

     COM_DOSCON(<cString>,[<nLine>],[<nColumn>]) --> cNull

 Arguments

     <cString>  Designates a string that is output through DOS.

     <nLine>  Designates  the line number where the string is output.
     The default position is the cursor position.

     <nColumn>  Designates  the column number where the string is output.
     The default position is the cursor position.

 Returns

     This function always returns a null string.

 Description

     COM_DOSCON() allows you to output a string through DOS.  This function
     can be used to provide an interpretation of ANSI control sequences
     through ANSI.SYS.  The installed status of the ANSI driver can be
     determined using the ISANSI() function.

     In this way you can easily create a communications program with ANSI
     terminal emulation.

 Note

     .  Notice that DSETWINDOW() should be switched off when using
        this function.  Otherwise the output is routed through the CA-Clipper
        driver module, and operates like a print (?) with a position
        instruction.

 Examples

     When ANSI.SYS is linked in, output is through DOS.  This makes a simple
     terminal emulation possible!

     DSETWINDOW(.F.)               // Important for ISANSI()
     cData  := COM_READ(1)         // Data read in

     IF ISANSI()                   // ANSI driver present?
        COM_DOSCON(cData)
     ELSE
        * Own ANSI handling
     ENDIF


See Also: ISANSI()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson