home *** CD-ROM | disk | FTP | other *** search
-
- NAME: CONNECT
-
- SYNTAX: CONNECT <portname> <command>
-
- DESCRIPTION:
-
- This command tells the display module where and how to send any
- data received from the keyboard. After this command is executed,
- all further data received will be sent to <portname> with the
- command <command>.
-
- EXAMPLES:
-
- CONNECT 'ROBBS_ser' 'SEND'
-
- The example will cause all keyboard data to be sent to a public
- port called 'ROBBS_ser', using a 'SEND' command. Assuming the
- data typed was "a", the actual string sent to 'ROBBS_ser' will
- be "SEND a".
-
- CONNECT ''
-
- Effectively 'disconnects' the display module. keypresses will not
- be sent until a 'CONNECT <portname> is received by the display
- module.
-
- NOTES:
-
- It is important to note the difference between CTRL and CONNECT. CTRL
- specifies where function key and HELP keypresses are sent, since they
- are usually sent to a 'controlling program', as opposed to a program
- that expects ASCII characters. CONNECT is for sending characters (with
- a command) to a program that understands what to do with them.
-
- Note that a program refers to either an ARexx script or an executable
- written in any other language, and that the CTRL and CONNECT ports may
- be the same port.
-
- The data typed will be sent as a 'stream' as it is received,
- so it will be sent as individual packets of arbitrary length.
- If you want to parse it on a line basis (or any other basis),
- your application will have to handle it by checking for a
- linefeed or carriage return.
-
- SEE ALSO: STATUS, CTRL
-