* SCRIPT COMMANDS These commands are used (in conjunction with other Kermit commands) for carrying out an automated dialog with a remote computer. ASK Print the on the screen, assign what user types to the . ASKQ Like ASK, but do not echo what user types. GETOK Like ASK, but asks a Yes or No question. Succeeds if answer is Yes, fails if answer is No, otherwise reprompts. OUTPUT Send the out the communications port. May include backslash codes, variables, etc, plus the special items \B to send a BREAK and \L to send a Long BREAK. SET OUTPUT PACING How many milliseconds (thousands of a second) to pause between each character in the OUTPUT string. INPUT [] Wait up to secs for to arrive at communications port. If it arrives, set SUCCESS. If not, time out and set FAILURE. String may contain backslash codes. SET INPUT CASE { IGNORE, OBSERVE } = IGNORE Say whether alphabet case should matter in searching for INPUT string. SET INPUT DEFAULT-TIMEOUT = 1 Timeout interval to use if none given in INPUT command. SET INPUT ECHO { ON, OFF } = ON Whether to display characters read by INPUT command on the screen. SET INPUT TIMEOUT-ACTION { PROCEED, QUIT } = PROCEED PROCEED means set SUCCESS or FAILURE and go on to next statement in macro definition or TAKE file. QUIT means to quit from current macro or TAKE file immediately upon timeout (i.e. upon failure). IF SUCCESS Execute the if the preceding INPUT command succeeded. Also works with file transfer commands like SEND, RECEIVE, GET, BYE, etc. IF FAILURE Execute the if the preceding INPUT or file transfer command failed. PAUSE Do nothing for specified number of seconds, or until any character is typed at the keyboard. MPAUSE Like PAUSE, but number is milliseconds rather than seconds. WAIT [] [CD] [CTS] [DSR] [RI] Wait (seconds or until time hh:mm:ss) for specified modem signals. CLEAR [ { INPUT-BUFFER, DEVICE-BUFFER, BOTH } ] CLEAR INPUT clears the INPUT/REINPUT command buffer (characters that have already been read by Kermit's INPUT command). CLEAR DEVICE clears the communication device buffer (characters that have not yet been read by by Kermit), CLEAR BOTH (the default) clears both of these buffers. STOP Return immediately from the current macro or TAKE file to the MS-Kermit> prompt. STOP [ ] [ ] Return immdediately from the current macro or TAKE file to the MS-Kermit> prompt, using the , if specified, as the SUCCESS / FAILURE code, and setting the value of \v(status) to that number. If the is omitted, the SUCCESS / FAILURE status of the previous command is retained and \v(status) is not changed. If the optional is given, it is printed on the screen. Leading and trailing spaces are removed unless the text is enclosed in curly braces, in which case only the curly braces are removed. Examples: STOP ; No message, status is not changed STOP 0 ; No message, status is 0 (SUCCESS) STOP 1 ; No message, status is 1 (FAILURE) STOP This is a message ; Status not changed, message is printed STOP { Indented text} ; Ditto, leading spaces are preserved STOP 0 This is a message ; Status set to 0, message is printed STOP 1 { This is a message} ; Status set to 1, message is printed END Return from current macro or TAKE file to the macro or TAKE file which invoked it, or if none, to the MS-Kermit> prompt. Synonym: POP. END [ number ] [ text ] Return from current macro or TAKE file to the macro or TAKE file which invoked it, or if none, to the MS-Kermit> prompt. Otherwise, identical to STOP. Synonym: POP. GOTO