home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
clipper
/
comm_io.arc
/
COMM.PRG
< prev
next >
Wrap
Text File
|
1987-11-16
|
2KB
|
42 lines
*
* 1- OUTP_CHAR {call} outputs a character string up to first null encountered.
* (Note- all clipper strings are terminated by a ascii null or hex 00)
* Example:
* PUTCHARS='a character string '
* CALL OUTP_CHAR WITH PUTCHARS
*
* 2- INP_CHAR(.T.or.F.) {function} returns a character string of the characters
* available in the input buffer (maximum of 512 characters)
* and gives the option of deleting characters read from input buffer .T. or
* .F. leaving it untouched which allows easy monitoring for a special
* character(s)
* Example:
* RECV_STR=INP_CHAR(.T.) & reads buffer and kills characters read
* from buffer
*
* 3- INP_CNT() {function} returns numeric indicating the number of characters
* that the input buffer is holding (Maximum of 512).
* Example:
* NUMCHAR=INP_CNT()
*
* 4- SET_XOFF {CALL} enables or disables xoff control .
* Example:
* SOFF=.T. && if you want to turn xoff feature on
* SOFF=.F. && to turn it off
* CALL SET_XOFF WITH SOFF
*
* 5- GET_XOFF(),RECV_XOFF(),SENT_XOFF() {FUNCTION} return logical value
* indicating state of control flags
* Example:
* GFLAG=GET_XOFF()
*
* 6- INIT_COMM,UNINIT_COM,INP_FLUSH {CALL} dont pass or return parameters
* Example:
* CALL INIT_COMM
* CALL INP_FLUSH
*---------------------------------------------------------------------------
CALL INIT_COMM
PUTCHARS='ATDT8963970'
CALL OUTP_CHAR WITH PUTCHARS