📄 ckc197.txt
字号:
char * dialvol1 (volume low command) char * dialvol2 (volume medium command) char * dialvol3 (volume high command) Added keyword parsing to ckuus3.c: SET MODEM SPEAKER { ON, OFF } SET MODEM VOLUME { HIGH, MEDIUM, LOW } Added modem command parsing, ckuus3.c: SET MODEM COMMAND { SPEAKER-ON, SPEAKER-OFF } <string> SET MODEM COMMAND { VOLUME-HIGH, VOLUME-MEDIUM, VOLUME-LOW } <string> Added these fields to all MDMINF structs in ckcker.h and ckudia.c. Changed name of dial_str[] keyword table to mdmcmd[] because the original was in conflict with a MDMINF struct name, ckuus3.c. Filled in SHOW MODEM to show all these values, adjusted pagination, ckuus3.c. Filled in HELP SET MODEM, ckuus2.c. Added semantics to ckudia.c.Fixed errors in yesterday's work. ckuus3.c, ckudia.c, 12 May 97.Added GENERIC-HIGH-SPEED to MINIDIAL selection. Also, USER-DEFINED wassupposed to be there too, but that was only halfway done. ckudia.c, 12 May 97.Change SET MODEM CAPABILITIES to set or unset SPEED-MATCHING automaticallybased on whether SB was included among the capabilities. ckuus3.c, 12 May 97.Added support for the following new built-in modem types: . QuickComm Spirit II . Motorola Montana . Compaq Data+Fax (e.g. in Presario) . Fujitsu Fax/Modem Adpater . Megahertz AT&T V.34 . SupraSonic V288+ . Best Datackudia.c, 12 May 1997.Changed speaker and volume commands to use multiple keywords, not dashes,like for EC and DC. ckuusr.h, ckuus3.c, 13 May 97.Added SET TERMINAL KEYBOARD-MODE { NORMAL, EMACS, HEBREW, RUSSIAN }.ckuusr.h, ckuus[27].c.Fixed HELP text for SET MODEM { SPEAKER, VOLUME }. ckuus2.c, 13 May 97.Added support for more new modem types: . AT&T Secure Data STU-III Model 1900 (untested) . AT&T Secure Data STU-III Model 1910 (untested)These are scrambling modems used at high-security places, which only talkto each other. Also, rearranged SET MODEM TYPE keywords that were out ofalphabetical order. ckudia.c, 13 May 97.Added E1V1 to all Hayes-like modem init strings for OS/2 and Windows, tomake sure we parse word result codes -- this eliminates lots of confusioncaused by incompatible digit result codes. I didn't do this for UNIX, VMS,etc, because it is bad to reconfigure shared modems. ckudia.c, 14 May 97.Added DIA_TAPI (= 34), "TAPI reported failure - reason unknown", to DIALfailure codes and messages, and changed TAPI dialing failure code to set thisreason. ckcker.h, ckudia.c, 14 May 97.Added missing cases 15, 16, 17, 19, 25, 45, 107 for USR digit result codes.ckudia.c, 14 May 97.Fix for SCRIPT command from Gerhard Rueckle <rueckle@dr.fbe.fh-darmstadt.de>at FH Darmstadt, to filter out NULs from session log (otherwise whole lineswere getting lost due to use of str*() functions). ckuscr.c, 15 May 97.Discovered that S_I[RWX]OTH stat.h symbols for file permissions could not bedepended upon, and so added more #ifdefs to account for this in zsattr().Also, realized it's silly to use the "world" permissions field for the"generic" permission (even though that's what the book says); changed it touse the "user" (self) field. ckufio.c, 16 May 97.After spending 2 hours on the phone with a user, revised the AT&T STU IIImodem commands by trial and error until they worked. The manuals and otherinfo from AT&T were wrong. ckudia.c, 17 May 97.Added \%* variable, used only in macros, replaced by all the args that thecurrent macro was called with (1..argc). ckuus4.c, 18 May 97.Added "IF <=" and "IF >=". ckuusr.h, ckuus6.c, 18 May 97.Changed DIRECTORY, general case (mostly UNIX), to use cmtxt() rather thancmdir(), to allow free-form directory commands, inclusion of switches forsystem directory command, redirectors, etc. ckuus6.c, 18 May 97.Added SET FILE EOF { CTRL-Z, LENGTH }. Applies only to text-mode transfers.When set to CTRL-Z, this makes the file sender treat the first Ctrl-Z in theinput file as the end of file (EOF) (NOTE: this never worked before), and itmakes the file receiver tack a Ctrl-Z onto the end of the output file if itdoes not already end with Ctrl-Z. This feature is included for any platformfor which CK_CTRLZ is defined during compilation; by default it is definedonly for OS2. Added to SHOW FILE, reformatted SHOW FILE. ckcdeb.h, ckcker.h,ckuus[2347].c, ckcfns.c, ckufio.c, 18 May 97.Changed CALL macro to not SET MODEM TYPE if given type is the same as thecurrent type, thus avoiding overwriting customizations. Also, don't SET SPEEDor LINE if given values are the same as current ones. ckermit.ini, 18 May 97.Examined the problem in which we DIAL a modem, disconnect, then SET HOST orTELNET, then HANGUP, and Kermit sends +++ATHO. There is no good way to avoidthis, because this case can't reliably be distinguished from the case in whichthe user does SET HOST <terminal-server>, SET MODEM TYPE <name>, DIAL. Inboth cases we have a valid modem type selected and we have a networkconnection. If the user wants to DIAL and then later make a regular networkconnection, she will have to SET MODEM TYPE NONE or SET MODEM HANGUP RS232to avoid this phenomenon.Fixed IF EXIST and IF DIRECTORY to properly strip braces from around theirarguments, so "if directory {C:\Program Files}", etc, would work as expected.However, this means that if the file or directory name is actually enclosedin braces, the braces must be doubled. ckuus6.c, 18 May 97.Fixed problem that occurred if "set host nonexistent-host" followed by certaincommands like SEND; the original modem type was not restored and ttopen()thought that it still had a network hostname. ckuus7.c, 18 May 97.Fixed HELP SET RECEIVE PATHNAMES to show default is OFF, not ON. ckuus2.c,18 May 97.Fixed SET EDITOR and SET BROWSER to use PATH in UNIX. ckuus3.c, 18 May 97.Fixed cmifip() to make its own safe copy of the PATH string, so the callerdoes not have do this every time, and simplified calls to cmifip(),consolidating OS/2 and UNIX calls. ckucmd.c, ckuus3.c, 18 May 97.Got rid of the old cmdir() function, replaced it by a new one that is just awrapper for cmifi() that makes cmifi() parse only directory names and handlecompletion and ?-file-lists. This affects the CD, SET SERVER GET-PATH, SETTEMP-DIRECTORY, SET FILE DOWNLOAD-DIR, and SPACE commands. ckucmd.h,ckucmd.c, 19 May 97.Fix definition of TRMBUFL (termcap buffer length), and use it when allocatingthe termcap buffer, trmbuf. ckcdeb.h, ckuusx.c, 19 May 97.Don't print "Warning: terminal type unknown, Fullscreen file transfer displaydisabled" if C-Kermit is in remote mode. ckuusx.c, 19 May 97.Allow GET and RECEIVE as-names to override RECEIVE PATHNAMES setting.rcvfil(), ckcfns.c, 19 May 97.The READ command was being overly picky about "last line lacks terminator".I changed it to allow the last or only line to lack a terminator. This is asneaky way of allowing even binary files to be read into a variable (all atonce) if the READ buffer is set large enough (and the file does not containNUL characters). doask(), ckuus6.c, 19 May 97.The braces problem: Since braces are used in function calls to indicategrouping, there is no way to pass literal braces to the function itself.Solution: Define a variable containing the string that has braces. Example: define \%a ab{cd echo \fsubstring(\%a) ab{cdIf the string is to start with a leading brace and end with a closing brace,then double braces must appear around the string (which itself is enclosed inbraces): define \%a {{{foo}}} echo \fsubstring(\%a) {foo}This also works for any other kind of string: define \%a {{ab{cd}} echo \fsubstring(\%a) ab{cdNo changes here -- this is how it has always worked, but was not documentedbefore.Lots of users try to write scripts for Telnet logins, but use "telnet"rather than "set host"... eventually they log out or close the connection,and then when the INPUT command executes, it says "?Can't condition linefor INPUT", which is singularly uninformative. I made INPUT issue a bettermessage when it knows the connection is not open (CK_TTYFD is defined andttyfd == -1). doinput(), ckuus4.c, 19 May 97.Added SET INPUT AUTODOWNLOAD { ON, OFF } (to control autodownload during INPUTseparately from during CONNECT) and SHOW INPUT. ckuusr.h, ckuus[r2457].c,19 May 97.Changed CD to use CDPATH, like ksh. If the CDPATH environment variable isdefined, then it is used: if a CD command is given for a relative directory,then if it is not found in the current directory, the CD path is searched fora directory that contains a directory of the given name. ckucmd.c, ckuus5.c,20 May 97.Rearranged #ifdefs in ckcdeb.h so CK_ENVIRONMENT would take effect for UNIX.20 May 97.Added CGET command (GET to pipe). ckuusr.h, ckuusr.c. 21 May 97.Added SET EOF as invisible synonym for SET FILE EOF. ckuusr.h, ckuus[37].c,21 May 97.Fixed UNIX version of CD, when following CDPATH, to treat an empty member asthe current directory, rather than root (by definition of CDPATH). ckucmd.c,22 May 97.Changed netopen() to supply "23" as the default service, rather than "telnet",to sidestep all the problems we have been having with getservbyname()returning the service number with its bytes swapped. ckcnet.c, 23 May 97.Installed patches for CMUIP from Wolfgang Moeller <moeller@decus.decus.de>.ckutio.c, 23 May 97.Some fixes for Wollongong Pathway from Ray Hunter. ckcnet.c, ckvtio.c,23 May 97.Some new #ifdefs for UCX / DECC from Martin Zinser. ckcnet.c, 23 May 97.Added CHECK NETWORK before trying to SET NETWORK DIRECTORY. ckermit.ini,23 May 97.Added support for AT&T KeepinTouch modem card. Moved modem-type definitionsto ckuusr.h. ckuusr.h, ckudia.c, 27 May 97.Fixed SET EDITOR and SET BROWSER to convert filename to a full pathnamein case it wasn't already. Removed SET BROWSER from all implementationsexcept OS/2 and Windows. ckuusr.c, ckuus3.c, 28 May 97.SET EXIT WARNING didn't work properly when connection was opened with-l, -j, or -J on command line. Fixed in ckuusy.c, 29 May 97.Fixed SET EDITOR to use EDITOR environment variable as default.Fixed SET PROTOCOL not to parse external command fields if protocol is Kermit(it never should have); Kermit isn't an external protocol. ckuus3.c, 1 Jun 97.Added "autoserver" command, 1 Jun 97: . It is not part of ptab[], since is specific to Kermit protocol. . Initialize char * srvstring to "kermit -x" in initproto(), ckcmai.c. . Added new 3rd field to SET PROTOCOL KERMIT for server string, ckuus3.c. . Updated SHOW PROTOCOL to display the server string, ckuus4.c. . Added code to send server string when GET or REMOTE are given, ckcpro.w. . Updated help message for SET PROTOCOL, ckuus2.c.Added -O command-line option: "be a server, but execute Only One command".ckuusy.c, 1 Jun 97.Added a new keyword flag, CM_HLP, which (when combined with CM_INV), meansthat the keyword, which is normally invisible, becomes visible in a HELPcommand. Adjusted calling conventions and prototypes for various commandparsing functions accordingly. ckucmd.h, ckucmd.c, 2 Jun 97.Added new keywords to top-level cmdtab[]: FUNCTIONS and KVERBS with CM_HLPflag, visible only from HELP. ckuusr.c, 2 Jun 97.Filled in help text for each function (61 of them), and fixed some mistakes inthe function keyword table, fnctab[]. Adds about 8K. ckuus[24].c, 2 Jun 97.Added reference to HELP FUNCTION to SHOW FUNCTION. ckuus5.c, 2 Jun 97.Added \v(regname), \v(regorg), \v(regnum), invisible variables forregistration info; they just call get_reg_blah() from ckoetc.c. ckuusr.h,ckuus4.c, 2 Jun 97.Added \v(xprogram), the specific program name: "K-95", "K/2", or "C-Kermit".ckuusr.h, ckuus4.c, 3 Jun 97.From Jeff, 5 Jun 97: . \v(line) changed to return Kermit form of TAPI device name (no blanks etc). . Fix for internal coding error with IF EQUAL s1 s2.Added IF TAPI. ckuusr.h, ckuus6.c, 5 Jun 97.Seemingly minor problems with cmdir() directory parsing fixed, 5 Jun 97: 1. "cd /" would tend to fail because "too many directories match"; fixed in cmdir() by not calling zxpand if we are parsing a directory name and it does not contain any wildcard characters. 2. "cd xxx<ESC>" would not supply the trailing directory separator when completion was successful. Fixed in ckucmd.c.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -