home *** CD-ROM | disk | FTP | other *** search
- /* An example of a disterm`DISOUT command. */
- /* It takes at least 1 arg, the byte to output. NOTE: Does not print to the */
- /* disTerm window (unless the modem echos back the bytes as with Hayes commands) */
-
- /* Here's how I begin all of my rexx scripts meant to control disTerm */
- ADDRESS 'disTerm' /* All the following commands go to disTerm */
- OPTIONS FAILAT 20
- OPTIONS RESULTS
- quote = '27'X /* use this variable name in place of any ' char within a string */
-
- /* Bring disTerm window to the front */
- 'DISWIND'
-
- /* Use this for sending a newline via DISOUT */
- newline = 'A'X
-
- /* Let's send the ATH Hayes command to the modem 1 byte at a time. Note that */
- /* we could do this easier via the DISSTRING command, but that prints the */
- /* output as well as translating any imbedded CTRL (^) or escape (\) sequences */
- 'DISOUT' 'A'
- 'DISOUT' 'T'
- 'DISOUT' 'H'
- 'DISOUT'newline
-