The following is a brief description of the changes since version 3.14.
SET TRANSFER MODE { AUTOMATIC, MANUAL }controls this feature, with the default being MANUAL for no announcement. If the "sysid" mode is used it overrides user choice of binary or text mode file transfers when like systems converse. Works with C-Kermit 6.0, Kermit 95 1.1.5 or later, IBM Mainframe Kermit 4.3.2 (soon to be announced), and of course MS-DOS Kermit 3.15 itself.
SET TERMINAL EXPANDED-MEMORY { OFF, EXPANDED, EXTENDED, ON }The default is ON, which means try expanded memory first, and if that fails then try extended. With Extended in use Kermit does not need an expanded memory page frame (located in UMB memory). The default ON results in operation the same as for version 3.14 of MS-DOS Kermit.
SET TERMINAL AUTODOWNLOAD { ON, OFF }controls this feature, with the default being ON. When the remote host sends a Kermit "I" or "S" packet to initiate a file transfer in either direction (via a SEND or GET command) then MS-DOS Kermit switches to file transfer mode, performs the file transfer, then returns to CONNECT mode.
To download a file, just tell the remote Kermit to send it, e.g. (for C-Kermit on the remote end):
kermit -s filespec ; To download in text mode kermit -is filespec ; To download in binary modeor (at the Kermit prompt):
C-Kermit> set file type text ; (or "binary") C-Kermit> send filespecTo upload a file, tell the remote Kermit to GET it, e.g.:
kermit -g pc-filespec ; To upload in text mode kermit -ig pc-filespec ; To upload in binary modeor:
C-Kermit> set file type text ; (or "binary") C-Kermit> get pc-filespec
\frindex(pattern,string,position)
\feval(expression)
+, -, *, / Add, subtract, multiply, divide + and - are also unary operators% modulo, remainder ^ exponent, to power of ! factorial ~ logical bit-wise NOT, one's complement & bit-wise AND | bit-wise OR # bit-wise Exclusive-OR @ Greatest Common Divisor ( ) Clustering symbols, to 8 deep.
\fipaddr(string)
\ftod2secs(hh:mm:ss)
\fverify(pattern, string, offset)
Function names may be abbreviated to uniqueness, such as \fmin().
Numbers can be expressed as implicit decimal, 1996, or have a base associated with them such as \x1b for hexadecimal (27 dec). Numbers may be signed and results are retained to 32-bits.
Single byte numerical values, \x1b, are permitted in text strings and represent one byte. To use backslash as itself double it, \\. Note that a number may terminate from its value filling a byte. For example:
ECHO testing \12345produces:
testing {45because \123 makes a full byte (visually a left curly brace).
define \%a minal set ter\%a type vt320This concept is extended to spelling of \function names, labels, and even the names of substitution variables themselves.
MINPUT timeout pattern1 patttern2 pattern3...This behaves the same as INPUT except each of the patterns is examined and the first match terminates the command. Patterns containing spaces should be placed within curly braces, e.g. {three word pattern}. The pattern which is matched is revealed in new variable \v(minput): 1 if the first one was matched, two if the second, and so on, or 0 if none were matched.
-1 for not initialized yet 0 for success 1 for timed out 2 for user level Control-C interrupt 4 for connection lost
FOR variable-name start end increment { command, ... } WHILE logical-test { command, ... } SWITCH variable { case-list } XIF logical-test { command, ... } ELSE { command, ... } IF logical-testwhere:ELSE command
XIF may have the ELSE word in the middle of a command line, but ELSE must not be a separate command line. Only the IF statement uses ELSE as a separate command line (see below).
The IF statement has been extended to allow an optional second line of ELSE Kermit command. ELSE must be at the start of the next line rather than on the same line as the IF main body.
BREAK terminates a FOR or WHILE loop or a SWITCH case. Control resumes at the next outer statement, if any.
CONTINUE continues FOR and WHILE statements the at the bottom, skipping statements between itself and the bottom of the loop.
These statements may be nested.
Used by macros to return "string" to new variable \v(return) and then terminate the macro. Termination is otherwise the same as by POP or END.
Puts NAME=string into the DOS master environment. Example script sequence:
input 10 Your IP number today is input 10 Please record it now. setenv myip=\fipaddr(\v(input))where the remote machine sends "Your IP number today is 123.111.222.123. Please record it now." The DOS master environment would have the new line "MYIP=123.111.222.123" at the end.
Note that changing the master environment does not affect the copy existing within Kermit nor any processes launched while in Kermit.
Accented Letters. Enter in the desired case (upper or lower). Key 1 (K1) and Key 2 (K2) can be entered in either order. Character Name K1 K2 A acute A ' A breve A % A circumflex A ^ A diaeresis A " A ogonek A = C acute C ' C caron C & C cedilla C , D caron D & D stroke D - E acute E ' E caron E & E diaeresis E " E ogonek E = I acute I ' I circumflex I ^ L acute L ' L caron L & L with stroke L / N acute N ' N caron N & O acute O ' O circumflex O ^ O diaeresis O " O double acute O # R acute R ' R caron R & S acute S ' S caron S & S cedilla S , T caron T & T cedilla T , U acute U ' U diaeresis U " U double acute U # U ring U * Y acute Y ' Z acute Z ' Z caron Z & Z dot above Z . ss (German sharp s) s s (lowercase only) Accents and special characters; enter K1 and K2 in the order shown: Character Name K1 K2 Acute accent ' ' (two apostrophes) Breve % % (two percent signs) Caron & & (two ampersands) Cedilla , , (two commas) Currency sign X 0 (or X O, or x 0, or x o) Degree sign 0 ^ (zero and circumflex) Diaeresis : : (two colons) Division sign - : (hyphen and colon) Dot above . . (two periods) Double acute # # (two number or pound signs) Multiplication sign X X (or x x) Ogonek = = (two equal signs) Paragraph sign S ! (or S 0 or S O, upper or lower case) Soft hyphen - - (two hyphens)