1 /* C K U U S R . H -- Symbol definitions for C-Kermit ckuus*.c modules */ 2 3 /* 4 Author: Frank da Cruz <fdc@columbia.edu>, 5 Columbia University Academic Information Systems, New York City. 6 7 Copyright (C) 1985, 2017, 8 Trustees of Columbia University in the City of New York. 9 All rights reserved. See the C-Kermit COPYING.TXT file or the 10 copyright text in the ckcmai.c module for disclaimer and permissions. 11 */ 12 #ifndef CKUUSR_H 13 #define CKUUSR_H 14 15 #include "ckucmd.h" /* Get symbols from command package */ 16 17 #ifndef NOLUCACHE /* Use lookup() cache */ 18 #ifndef NOSPL /* To speed up script programs */ 19 #ifndef USE_LUCACHE 20 #define USE_LUCACHE 21 #endif /* USE_LUCACHE */ 22 #endif /* NOSPL */ 23 #endif /* NOLUCACHE */ 24 25 #ifndef NODOUBLEQUOTING /* New to 8.0 */ 26 #define DOUBLEQUOTING /* Allow fields to be enclosed in */ 27 #endif /* NODOUBLEQUOTING */ /* doublequotes. */ 28 29 #ifndef NOLOCUS /* SET LOCUS */ 30 #define LOCUS 31 #endif /* NOLOCUS */ 32 33 /* Sizes of things - FNVALL and MAXARGLEN increased from 8K 2005/09/12 */ 34 /* Other things increased even more for 64-bit builds 2016/02/03 */ 35 36 #ifdef BIGBUFOK 37 #define FNVALL CMDBL /* Function return value length */ 38 #define MAXARGLEN CMDBL /* Max func arg length after eval */ 39 #define MAXARGLIST 1024 /* Max number of args for a macro */ 40 #define FSPECL CMDBL /* Max length for MSEND/GET string */ 41 #define MSENDMAX 1024 /* Number of filespecs for MSEND */ 42 #define MAC_MAX 16384 /* Maximum number of macros */ 43 44 #else /* Same as above but for smaller builds... */ 45 46 #define FNVALL 1022 47 #define MAXARGLEN 1023 48 #define MAXARGLIST 64 49 #define FSPECL 300 50 #define MSENDMAX 128 51 #define MAC_MAX 1024 52 #endif /* BIGBUFOK */ 53 54 #define GVARS 127 /* Highest global var allowed */ 55 #ifdef BIGBUFOK 56 #define VNAML 4096 /* Max length for variable name */ 57 #define ARRAYREFLEN 1024 /* Max length for array reference */ 58 #define FORDEPTH 32 /* Maximum depth of nested FOR loops */ 59 #define MAXTAKE 54 /* Maximum nesting of TAKE files */ 60 #define MACLEVEL 128 /* Maximum nesting for macros */ 61 #define INPBUFSIZ 4096 /* Size of INPUT buffer */ 62 #define PROMPTL 1024 /* Max length for prompt */ 63 #define LBLSIZ 8192 /* Maximum length for a GOTO label */ 64 #else 65 #define VNAML 256 /* Max length for variable name */ 66 #define ARRAYREFLEN 128 /* Max length for array reference */ 67 #define FORDEPTH 10 /* Maximum depth of nested FOR loops */ 68 #define MAXTAKE 32 /* Maximum nesting of TAKE files */ 69 #define MACLEVEL 64 /* Maximum nesting for macros */ 70 #define INPBUFSIZ 256 71 #define PROMPTL 256 /* Max length for prompt */ 72 #define LBLSIZ 128 /* Maximum length for a GOTO label */ 73 #endif /* BIGBUFOK */ 74 #define NARGS 10 /* Max number of macro arguments */ 75 #define LINBUFSIZ (CMDBL + 10) /* Size of line[] buffer */ 76 #define TMPBUFSIZ (CMDBL + 10) /* Size of temporary buffer */ 77 78 #define CMDSTKL ( MACLEVEL + MAXTAKE + 2) /* Command stack depth */ 79 80 #ifndef NOPURGE /* PURGE command */ 81 #ifdef UNIX 82 #define CKPURGE 83 #endif /* UNIX */ 84 #endif /* NOPURGE */ 85 86 #ifndef NOMINPUT /* MINPUT command */ 87 #ifndef NOSPL 88 #define CK_MINPUT 89 #ifndef MINPMAX 90 #ifdef BIGBUFOK 91 #define MINPMAX 96 /* Max number of MINPUT strings */ 92 #else 93 #define MINPMAX 16 94 #endif /* BIGBUFOK */ 95 #endif /* MINPMAX */ 96 #define MINPBUFL 256 /* Size of MINPUT temp buffer */ 97 #endif /* NOSPL */ 98 #endif /* NOMINPUT */ 99 100 #define ARRAYBASE 95 /* Lowest array-name character */ 101 102 #ifndef NOKERBANG 103 #ifndef KERBANG 104 #define KERBANG 105 #endif /* KERBANG */ 106 #endif /* NOKERBANG */ 107 108 /* Bit values (1, 2, 4, 8, ...) for the ccflgs field */ 109 110 #define CF_APC 1 /* Executing an APC command */ 111 #define CF_KMAC 2 /* Executing a \Kmacro */ 112 #define CF_CMDL 4 /* Macro from -C "blah" command line */ 113 #define CF_REXX 8 /* Macro from REXX interpreter */ 114 #define CF_IMAC 16 /* Internal macro like FOR, WHILE... */ 115 116 struct cmdptr { /* Command stack structure */ 117 int src; /* Command Source */ 118 int lvl; /* Current TAKE or DO level */ 119 int ccflgs; /* Flags */ 120 }; 121 122 struct mtab { /* Macro table, like keyword table */ 123 char *kwd; /* But with pointers for vals */ 124 char *mval; /* instead of ints. */ 125 short flgs; 126 }; 127 128 struct localvar { /* Local variable structure. */ 129 char * lv_name; 130 char * lv_value; 131 struct localvar * lv_next; 132 }; 133 134 struct stringlist { /* General purpose string list */ 135 char * sl_name; 136 struct stringlist * sl_next; 137 }; 138 139 struct stringint { /* String and (wide) integer */ 140 char * sval; /* used mainly with command switches */ 141 int ival; 142 CK_OFF_T wval; 143 }; 144 145 #ifndef NOICP 146 /* 147 C-Kermit Initialization file... 148 149 System-dependent defaults are built into the program, see below. 150 These can be overridden in either of two ways: 151 1. CK_DSYSINI is defined at compile time, in which case a default 152 system-wide initialization file name is chosen from below, or: 153 2: CK_SYSINI is defined to be a string, which lets the program 154 builder choose the initialization filespec at compile time. 155 These can be given on the CC command line, so the source code need not be 156 changed. 157 */ 158 159 #ifndef CK_SYSINI /* If no initialization file given, */ 160 #ifdef CK_DSYSINI /* but CK_DSYSINI is defined... */ 161 162 /* Supply system-dependent "default default" initialization file */ 163 164 #ifdef UNIX /* For UNIX, system-wide */ 165 /* This allows one copy of the standard init file on the whole system, */ 166 /* rather than a separate copy in each user's home directory. */ 167 #ifdef HPUX10 168 #define CK_SYSINI "/usr/share/lib/kermit/ckermit.ini" 169 #else 170 #ifdef CU_ACIS 171 #define CK_SYSINI "/usr/share/lib/kermit/ckermit.ini" 172 #else 173 #ifdef __linux__ 174 #define CK_SYSINI "/usr/share/kermit/ckermit.ini" 175 #else 176 #define CK_SYSINI "/usr/local/bin/ckermit.ini" 177 #endif /* linux */ 178 #endif /* CU_ACIS */ 179 #endif /* HPUX10 */ 180 /* Fill in #else..#ifdef's here for VMS, OS/2, etc. */ 181 /* Fill in matching #endif's here. */ 182 #endif /* UNIX */ 183 184 #endif /* CK_DSYSINI */ 185 #endif /* CK_SYSINI */ 186 187 #ifdef CK_SYSINI /* Init-file precedence */ 188 #ifndef CK_INI_A /* A means system-wide file first */ 189 #ifndef CK_INI_B /* B means user's first */ 190 #define CK_INI_A /* A is default */ 191 #endif /* CK_INI_B */ 192 #endif /* CK_INI_A */ 193 #else 194 #ifdef CK_INI_A /* Otherwise */ 195 #undef CK_INI_A /* make sure these aren't defined */ 196 #endif /* CK_INI_A */ 197 #ifdef CK_INI_B 198 #undef CK_INI_B 199 #endif /* CK_INI_B */ 200 #endif /* CK_SYSINI */ 201 202 #ifdef CK_SYSINI /* One more check... */ 203 #ifdef CK_INI_A /* Make sure they're not both */ 204 #ifdef CK_INI_B /* defined. */ 205 #undef CK_INI_B 206 #endif /* CK_INI_B */ 207 #endif /* CK_INI_A */ 208 #endif /* CK_SYSINI */ 209 /* 210 If neither CK_DSYSINI nor CK_SYSINI are defined, these are the 211 built-in defaults for each platform. USE_CUSTOM means to execute the 212 customization file automatically if the initialization file is not found. 213 */ 214 #ifndef NOCUSTOM 215 #ifndef USE_CUSTOM 216 #define USE_CUSTOM 217 #endif /* USE_CUSTOM */ 218 #endif /* NOCUSTOM */ 219 220 #ifndef KERMRCL /* Path length for init file */ 221 #define KERMRCL CKMAXPATH 222 #endif /* KERMRCL */ 223 224 #ifdef vms 225 #define KERMRC "CKERMIT.INI" /* Init file name */ 226 #define MYCUSTOM "CKERMOD.INI" /* Customization file name */ 227 #else 228 #ifdef OS2 229 #ifdef NT 230 #define KERMRC "k95.ini" 231 #define MYCUSTOM "k95custom.ini" 232 #else 233 #define KERMRC "k2.ini" 234 #define MYCUSTOM "k2custom.ini" 235 #endif /* NT */ 236 #else 237 #ifdef UNIXOROSK 238 #define KERMRC ".kermrc" 239 #define MYCUSTOM ".mykermrc" 240 #else 241 #ifdef STRATUS 242 #define KERMRC "ckermit.ini" 243 #define MYCUSTOM "ckermod.ini" 244 #else 245 #define KERMRC "CKERMIT.INI" 246 #define MYCUSTOM "ckermod.ini" 247 #endif /* STRATUS */ 248 #endif /* UNIXOROSK */ 249 #endif /* OS2 */ 250 #endif /* vms */ 251 252 #ifndef KERMRCL 253 #define KERMRCL 256 254 #endif /* KERMRCL */ 255 #endif /* NOICP */ 256 257 /* User interface features */ 258 259 #ifndef NORPLWORDMODE /* \freplace() word mode */ 260 #define RPLWORDMODE 261 #endif /* NORPLWORDMODE */ 262 263 #ifdef CK_CURSES /* Thermometer */ 264 #ifndef NO_PCT_BAR 265 #ifndef CK_PCT_BAR 266 #define CK_PCT_BAR 267 #endif /* NO_PCT_BAR */ 268 #endif /* CK_PCT_BAR */ 269 #endif /* CK_CURSES */ 270 271 #ifdef KUI /* KUI requires the Thermometer code */ 272 #ifndef NO_PCT_BAR 273 #ifndef CK_PCT_BAR 274 #define CK_PCT_BAR 275 #endif /* NO_PCT_BAR */ 276 #endif /* CK_PCT_BAR */ 277 #endif /* KUI */ 278 279 /* Includes */ 280 281 #ifdef MINIX 282 /* why? */ 283 #include <sys/types.h> 284 #endif /* MINIX */ 285 286 /* Symbols for command source */ 287 288 #define CMD_KB 0 /* KeyBoard or standard input */ 289 #define CMD_TF 1 /* TAKE command File */ 290 #define CMD_MD 2 /* Macro Definition */ 291 292 /* 293 SET TRANSFER CANCELLATION command should be available in all versions. 294 But for now... 295 */ 296 #ifdef UNIX /* UNIX has it */ 297 #ifndef XFRCAN 298 #define XFRCAN 299 #endif /* XFRCAN */ 300 #endif /* UNIX */ 301 #ifdef VMS /* VMS has it */ 302 #ifndef XFRCAN 303 #define XFRCAN 304 #endif /* XFRCAN */ 305 #endif /* VMS */ 306 #ifdef datageneral /* DG AOS/VS has it */ 307 #ifndef XFRCAN 308 #define XFRCAN 309 #endif /* XFRCAN */ 310 #endif /* datageneral */ 311 #ifdef STRATUS /* Stratus VOS has it */ 312 #ifndef XFRCAN 313 #define XFRCAN 314 #endif /* XFRCAN */ 315 #endif /* STRATUS */ 316 #ifdef OSK /* OS-9 */ 317 #ifndef XFRCAN 318 #define XFRCAN 319 #endif /* XFRCAN */ 320 #endif /* OSK */ 321 322 #ifndef NOCMDL 323 /* Extended Command-Line Option Codes (keep alphabetical by keyword) */ 324 325 #define XA_ANON 0 /* --anonymous */ 326 #define XA_BAFI 1 /* --bannerfile */ 327 #define XA_CDFI 2 /* --cdfile */ 328 #define XA_CDMS 3 /* --cdmessage */ 329 #define XA_HELP 4 /* --help */ 330 #define XA_HEFI 5 /* --helpfile */ 331 #define XA_IKFI 6 /* --xferfile */ 332 #define XA_IKLG 7 /* --xferlog */ 333 #define XA_ANFI 8 /* --initfile */ 334 #define XA_PERM 9 /* --permissions */ 335 #define XA_ROOT 10 /* --root */ 336 #define XA_SYSL 11 /* --syslog */ 337 #define XA_USFI 12 /* --userfile */ 338 #define XA_WTFI 13 /* --wtmpfile */ 339 #define XA_WTMP 14 /* --wtmplog */ 340 #define XA_TIMO 15 /* --timeout */ 341 #define XA_NOIN 16 /* --nointerrupts */ 342 #define XA_DBAS 17 /* --database */ 343 #define XA_DBFI 18 /* --dbfile */ 344 #define XA_PRIV 19 /* --privid */ 345 #define XA_VERS 20 /* --version */ 346 #define XA_NPRM 21 /* --noperms */ 347 #define XA_XPOS 22 /* Window position X coordinate */ 348 #define XA_YPOS 23 /* Window position Y coordinate */ 349 #define XA_FNAM 24 /* Font Facename */ 350 #define XA_FSIZ 25 /* Font Size */ 351 #define XA_TERM 26 /* Terminal type */ 352 #define XA_CSET 27 /* Remote Character Set */ 353 #define XA_ROWS 28 /* Screen rows (height) */ 354 #define XA_COLS 29 /* Screen columns (width) */ 355 #define XA_TEL 30 /* Make a Telnet connection */ 356 #define XA_FTP 31 /* Make an FTP connection */ 357 #define XA_SSH 32 /* Make an SSH connection */ 358 #define XA_USER 33 /* Username for login */ 359 #define XA_PASS 34 /* Password for login */ 360 #define XA_TITL 35 /* Window Title */ 361 #define XA_NOMN 36 /* No GUI Menu Bar */ 362 #define XA_NOTB 37 /* No GUI Tool Bar */ 363 #define XA_NOSB 38 /* No GUI Status Bar */ 364 #define XA_NOPUSH 39 /* Disable external commands */ 365 #define XA_NOSCROLL 40 /* Disable scrollback operations */ 366 #define XA_NOESCAPE 41 /* Disable escape from connect mode */ 367 #define XA_LOCK 42 /* All lockdown options */ 368 #define XA_NOBAR 43 /* No GUI Bars */ 369 #define XA_WMAX 44 370 #define XA_WMIN 45 371 #define XA_SCALE 46 /* GUI Scale Font */ 372 #define XA_CHGD 47 /* GUI Change Dimensions */ 373 #define XA_NOCLOSE 48 /* GUI Disable Close Window */ 374 #define XA_UNBUF 49 /* UNIX unbuffered console */ 375 #define XA_NOLOCALE 50 /* Don't access or use locale */ 376 #define XA_MAX 50 /* Highest extended option number */ 377 #endif /* NOCMDL */ 378 379 #ifndef NOICP 380 /* Top Level Commands */ 381 /* Values associated with top-level commands must be 0 or greater. */ 382 383 #define XXBYE 0 /* BYE */ 384 #define XXCLE 1 /* CLEAR */ 385 #define XXCLO 2 /* CLOSE */ 386 #define XXCON 3 /* CONNECT */ 387 #define XXCPY 4 /* COPY */ 388 #define XXCWD 5 /* CWD (Change Working Directory) */ 389 #define XXDEF 6 /* DEFINE (a macro or variable) */ 390 #define XXDEL 7 /* (Local) DELETE */ 391 #define XXDIR 8 /* (Local) DIRECTORY */ 392 393 /* DIRECTORY Command options... */ 394 #define DIR_BRF 1 /* BRIEF */ 395 #define DIR_VRB 2 /* VERBOSE */ 396 #define DIR_PAG 3 /* PAGE */ 397 #define DIR_NOP 4 /* NOPAGE */ 398 #define DIR_ISO 5 /* ISODATE */ 399 #define DIR_DAT 6 /* ENGLISHDATE */ 400 #define DIR_HDG 7 /* HEADINGS */ 401 #define DIR_NOH 8 /* NOHEADINGS */ 402 #define DIR_SRT 9 /* SORT */ 403 #define DIR_NOS 10 /* NOSORT */ 404 #define DIR_ASC 11 /* ASCENDING */ 405 #define DIR_DSC 12 /* DESCENDING */ 406 #define DIR_REC 13 /* RECURSIVE */ 407 #define DIR_NOR 14 /* NORECURIVE */ 408 #define DIR_DOT 15 /* DOTFILES */ 409 #define DIR_NOD 16 /* NODOTFILES */ 410 #define DIR_DIR 17 /* DIRECTORIES */ 411 #define DIR_FIL 18 /* FILES */ 412 #define DIR_ALL 19 /* ALL */ 413 #define DIR_NAM 20 /* NAMES: */ 414 #define DIR_TYP 21 /* FILETYPES */ 415 #define DIR_NOT 22 /* NOFILETYPES */ 416 #define DIR_BUP 23 /* BACKUP */ 417 #define DIR_NOB 24 /* NOBACKUP */ 418 #define DIR_MSG 25 /* MESSAGE */ 419 #define DIR_NOM 26 /* NOMESSAGE */ 420 #define DIR_ARR 27 /* ARRAY: */ 421 #define DIR_NAR 28 /* NOARRAY */ 422 #define DIR_EXC 29 /* EXCEPT: */ 423 #define DIR_LAR 30 /* LARGER-THAN: */ 424 #define DIR_SMA 31 /* SMALLER-THAN: */ 425 #define DIR_AFT 32 /* AFTER: */ 426 #define DIR_NAF 33 /* NOT-AFTER: */ 427 #define DIR_BEF 34 /* BEFORE: */ 428 #define DIR_NBF 35 /* NOT-BEFORE: */ 429 #define DIR_SUM 36 /* SUMMARY */ 430 #define DIR_BIN 37 /* TYPE (only show binary or text) */ 431 #define DIR_LNK 38 /* follow symlinks */ 432 #define DIR_NLK 39 /* don't follow symlinks */ 433 #define DIR_OUT 40 /* Output file for listing */ 434 #define DIR_TOP 41 /* Top n lines */ 435 #define DIR_COU 42 /* COUNT:var */ 436 #define DIR_NOL 43 /* NOLINKS (don't show symlinks at at all) */ 437 #define DIR_MOD 44 /* Set modification time (used only by TOUCH) */ 438 #define DIR_SIM 45 /* /SIMULATE (for TOUCH) */ 439 #define DIR_DES 46 /* /DESTINATION: (for CHANGE) */ 440 #define DIR_BAK 47 /* /BACKUP: (for CHANGE) */ 441 442 #define DIRS_NM 0 /* Sort directory by NAME */ 443 #define DIRS_DT 1 /* Sort directory by DATE */ 444 #define DIRS_SZ 2 /* Sort directory by SIZE */ 445 446 #define XXDIS 9 /* DISABLE */ 447 #define XXECH 10 /* ECHO */ 448 #define XXEXI 11 /* EXIT */ 449 #define XXFIN 12 /* FINISH */ 450 #define XXGET 13 /* GET */ 451 #define XXHLP 14 /* HELP */ 452 #define XXINP 15 /* INPUT */ 453 #define XXLOC 16 /* LOCAL */ 454 #define XXLOG 17 /* LOG */ 455 #define XXMAI 18 /* MAIL */ 456 #define XXMOU 19 /* (Local) MOUNT */ 457 #define XXMSG 20 /* (Local) MESSAGE */ 458 #define XXOUT 21 /* OUTPUT */ 459 #define XXPAU 22 /* PAUSE */ 460 #define XXPRI 23 /* (Local) PRINT */ 461 #define XXQUI 24 /* QUIT */ 462 #define XXREC 25 /* RECEIVE */ 463 #define XXREM 26 /* REMOTE */ 464 #define XXREN 27 /* (Local) RENAME */ 465 #define XXSEN 28 /* SEND */ 466 467 /* SEND switches */ 468 469 #define SND_BIN 0 /* Binary mode */ 470 #define SND_DEL 1 /* Delete after */ 471 #define SND_EXC 2 /* Except */ 472 #define SND_LAR 3 /* Larger than */ 473 #define SND_MAI 4 /* Mail */ 474 #define SND_BEF 5 /* Before */ 475 #define SND_AFT 6 /* After */ 476 #define SND_PRI 7 /* Print */ 477 #define SND_SHH 8 /* Quiet */ 478 #define SND_REC 9 /* Recursive */ 479 #define SND_SMA 10 /* Smaller than */ 480 #define SND_STA 11 /* Starting-from */ 481 #define SND_TXT 12 /* Text mode */ 482 #define SND_CMD 13 /* From command (pipe) */ 483 #define SND_RES 14 /* Resend/Recover */ 484 #define SND_PRO 15 /* Protocol */ 485 #define SND_ASN 16 /* As-name */ 486 #define SND_IMG 17 /* Image */ 487 #define SND_LBL 18 /* Labeled */ 488 #define SND_NAF 19 /* Not-After */ 489 #define SND_NBE 20 /* Not-Before */ 490 #define SND_FLT 21 /* Filter */ 491 #define SND_PTH 22 /* Pathnames */ 492 #define SND_NAM 23 /* Filenames */ 493 #define SND_MOV 24 /* MOVE to another directory */ 494 #define SND_REN 25 /* RENAME after sending */ 495 #define SND_CAL 26 /* Calibrate */ 496 #define SND_FIL 27 /* File containing list of files to send */ 497 #define SND_NOB 28 /* Skip backup files */ 498 #define SND_DOT 29 /* Include dot-files */ 499 #define SND_NOD 30 /* Exclude dot-files */ 500 #define SND_ARR 31 /* Send from array */ 501 #define SND_TYP 32 /* TYPE (only send text (or binary)) */ 502 #define SND_XPA 33 /* TRANSPARENT */ 503 #define SND_PIP 34 /* PIPES */ 504 #define SND_ERR 35 /* ERROR */ 505 #define SND_CSL 36 /* Local character set */ 506 #define SND_CSR 37 /* Remote character set */ 507 #define SND_UPD 38 /* Update */ 508 #define SND_COL 39 /* Collision */ 509 #define SND_NML 40 /* Namelist */ 510 #define SND_SRN 41 /* Server-Rename */ 511 #define SND_LNK 42 /* Follow links */ 512 #define SND_NLK 43 /* Don't follow links */ 513 #define SND_SIM 44 /* Simulate */ 514 #define SND_DIF 45 /* If dates Differ */ 515 #define SND_PAT 46 /* Pattern to use locally when GET'ing */ 516 #define SND_NLS 47 /* (FTP only) MGET forces NLST */ 517 #define SND_MLS 48 /* (FTP only) MGET forces MLSD */ 518 519 #define SND_MAX 48 /* Highest SEND switch */ 520 521 #define XXSER 29 /* SERVER */ 522 #define XXSET 30 /* SET */ 523 #define XXSHE 31 /* Command for SHELL */ 524 #define XXSHO 32 /* SHOW */ 525 #define XXSPA 33 /* (Local) SPACE */ 526 #define XXSTA 34 /* STATISTICS */ 527 #define XXSUB 35 /* (Local) SUBMIT */ 528 #define XXTAK 36 /* TAKE */ 529 #define XXTRA 37 /* TRANSMIT */ 530 #define XXTYP 38 /* (Local) TYPE */ 531 #define XXWHO 39 /* (Local) WHO */ 532 #define XXDIAL 40 /* (Local) DIAL */ 533 #define XXLOGI 41 /* (Local) SCRIPT */ 534 #define XXCOM 42 /* Comment */ 535 #define XXHAN 43 /* HANGUP */ 536 #define XXXLA 44 /* TRANSLATE */ 537 #define XXIF 45 /* IF */ 538 #define XXLBL 46 /* label */ 539 #define XXGOTO 47 /* GOTO */ 540 #define XXEND 48 /* END */ 541 #define XXSTO 49 /* STOP */ 542 #define XXDO 50 /* DO */ 543 #define XXPWD 51 /* PWD */ 544 #define XXTES 52 /* TEST */ 545 #define XXASK 53 /* ASK */ 546 #define XXASKQ 54 /* ASKQ */ 547 #define XXASS 55 /* ASSIGN */ 548 #define XXREI 56 /* REINPUT */ 549 #define XXINC 57 /* INCREMENT */ 550 #define XXDEC 59 /* DECREMENT */ 551 #define XXELS 60 /* ELSE */ 552 #define XXEXE 61 /* EXECUTE */ 553 #define XXWAI 62 /* WAIT */ 554 #define XXVER 63 /* VERSION */ 555 #define XXENA 64 /* ENABLE */ 556 #define XXWRI 65 /* WRITE */ 557 #define XXCLS 66 /* CLS (clear screen) */ 558 #define XXRET 67 /* RETURN */ 559 #define XXOPE 68 /* OPEN */ 560 #define XXREA 69 /* READ */ 561 #define XXON 70 /* ON */ 562 #define XXDCL 71 /* DECLARE */ 563 #define XXBEG 72 /* BEGIN (not used) */ 564 #define XXFOR 72 /* FOR */ 565 #define XXWHI 73 /* WHILE */ 566 #define XXIFX 74 /* Extended IF */ 567 #define XXCMS 75 /* SEND from command output (not yet) */ 568 #define XXCMR 76 /* RECEIVE to a command's input (not yet) */ 569 #define XXCMG 77 /* GET to a command's input (not yet) */ 570 #define XXSUS 78 /* SUSPEND */ 571 #define XXERR 79 /* ERROR */ 572 #define XXMSE 80 /* MSEND */ 573 #define XXBUG 81 /* BUG */ 574 #define XXPAD 82 /* PAD (as in X.25 PAD) ANYX25 */ 575 #define XXRED 83 /* REDIAL */ 576 #define XXGTA 84 /* _getargs (invisible internal) */ 577 #define XXPTA 85 /* _putargs (invisible internal) */ 578 #define XXGOK 86 /* GETOK - Ask for YES/NO */ 579 #define XXTEL 87 /* TELNET */ 580 #define XXASX 88 /* _ASSIGN (evaluates var name) */ 581 #define XXDFX 89 /* _DEFINE (evaluates var name) */ 582 #define XXPNG 90 /* PING (for TCP/IP) */ 583 #define XXINT 91 /* INTRODUCTION */ 584 #define XXCHK 92 /* CHECK (a feature) */ 585 #define XXMSL 93 /* MSLEEP, MPAUSE (millisecond sleep) */ 586 #define XXNEW 94 /* NEWS */ 587 #define XXAPC 95 /* APC */ 588 #define XXFUN 96 /* REDIRECT */ 589 #define XXWRL 97 /* WRITE-LINE */ 590 #define XXREXX 98 /* Rexx */ 591 #define XXMINP 100 /* MINPUT */ 592 #define XXRSEN 101 /* RESEND */ 593 #define XXPSEN 102 /* PSEND */ 594 #define XXGETC 103 /* GETC */ 595 #define XXEVAL 104 /* EVALUATE */ 596 #define XXFWD 105 /* FORWARD */ 597 #define XXUPD 106 /* UPDATES */ 598 #define XXBEEP 107 /* BEEP */ 599 #define XXMOVE 108 /* MOVE */ 600 #define XXMMOVE 109 /* MMOVE */ 601 #define XXREGET 110 /* REGET */ 602 #define XXLOOK 111 /* LOOKUP */ 603 #define XXVIEW 112 /* VIEW (terminal buffer) */ 604 #define XXANSW 113 /* ANSWER (the phone) */ 605 #define XXPDIA 114 /* PDIAL (partial dial) */ 606 #define XXASC 115 /* ASCII / TEXT */ 607 #define XXBIN 116 /* BINARY */ 608 #define XXFTP 117 /* FTP */ 609 #define XXMKDIR 118 /* MKDIR */ 610 #define XXRMDIR 119 /* RMDIR */ 611 #define XXTELOP 120 /* TELOPT */ 612 #define XXRLOG 121 /* RLOGIN */ 613 #define XXUNDEF 122 /* UNDEFINE */ 614 #define XXNPSH 123 /* NOPUSH */ 615 #define XXADD 124 /* ADD */ 616 #define ADD_SND 0 /* ADD SEND-LIST */ 617 #define ADD_BIN 1 /* ADD BINARY-PATTERNS */ 618 #define ADD_TXT 2 /* ADD TEXT-PATTERNS */ 619 #define XXLOCAL 125 /* LOCAL */ 620 #define XXKERMI 126 /* KERMIT */ 621 #define XXDATE 127 /* DATE */ 622 #define XXSWIT 128 /* SWITCH */ 623 #define XXXFWD 129 /* _FORWARD */ 624 #define XXSAVE 130 /* SAVE */ 625 #define XXXECH 131 /* XECHO */ 626 #define XXRDBL 132 /* READBLOCK */ 627 #define XXWRBL 133 /* WRITEBLOCK */ 628 #define XXRETR 134 /* RETRIEVE */ 629 #define XXEIGHT 135 /* EIGHTBIT */ 630 #define XXEDIT 136 /* EDIT */ 631 #define XXCSEN 137 /* CSEND */ 632 #define XXCREC 138 /* CRECEIVE */ 633 #define XXCQ 139 /* CQ */ 634 #define XXTAPI 140 /* TAPI actions such as dialogs */ 635 #define XXRES 141 /* RESET */ 636 #define XXCGET 142 /* CGET */ 637 #define XXFUNC 143 /* Function (help-only) */ 638 #define XXKVRB 144 /* Kverb (help-only) */ 639 #define XXBROWS 145 /* BROWSE */ 640 #define XXMGET 146 /* MGET */ 641 #define XXBACK 147 /* BACK */ 642 #define XXWHERE 148 /* WHERE */ 643 #define XXREDO 149 /* REDO */ 644 #define XXEXCH 150 /* EXCHANGE */ 645 #define XXREMV 151 /* REMOVE */ 646 #define XXCHRT 152 /* CHROOT */ 647 #define XXOPTS 153 /* Options (help-only) */ 648 #define XXAUTH 154 /* AUTHORIZE */ 649 #define XXPIPE 155 /* PIPE */ 650 #define XXSSH 156 /* SSH */ 651 #define XXTERM 157 /* TERMINAL */ 652 #define XXSTATUS 158 /* STATUS */ 653 #define XXCPR 159 /* COPYRIGHT */ 654 #define XXASSER 160 /* ASSERT */ 655 #define XXSUCC 161 /* SUCCEED */ 656 #define XXFAIL 162 /* FAIL */ 657 #define XXLOGIN 163 /* LOGIN */ 658 #define XXLOGOUT 164 /* LOGOUT */ 659 #define XXNLCL 165 /* NOLOCAL */ 660 #define XXWILD 166 /* WILDCARDS (help-only) */ 661 662 /* One-word synonyms for REMOTE commands */ 663 664 #define XXRCPY 167 /* REMOTE COPY */ 665 #define XXRCWD 168 /* Change Working Directory */ 666 #define XXRDEL 169 /* Delete */ 667 #define XXRDIR 170 /* Directory */ 668 #define XXRHLP 171 /* Help */ 669 #define XXRHOS 172 /* Host */ 670 #define XXRKER 173 /* Kermit */ 671 #define XXRMSG 174 /* Message */ 672 #define XXRPRI 175 /* Print */ 673 #define XXRREN 176 /* Rename */ 674 #define XXRSET 177 /* Set */ 675 #define XXRSPA 178 /* Space */ 676 #define XXRSUB 179 /* Submit */ 677 #define XXRTYP 180 /* Type */ 678 #define XXRWHO 181 /* Who */ 679 #define XXRPWD 182 /* Print Working Directory */ 680 #define XXRQUE 183 /* Query */ 681 #define XXRASG 184 /* Assign */ 682 #define XXRMKD 185 /* mkdir */ 683 #define XXRRMD 186 /* rmdir */ 684 #define XXRXIT 187 /* Exit */ 685 686 /* Top-Level commands, cont'd... */ 687 688 #define XXGETK 188 /* GETKEYCODE */ 689 #define XXMORE 189 /* MORE */ 690 #define XXXOPTS 190 /* Extended-Options (help-only) */ 691 #define XXIKSD 191 /* IKSD */ 692 #define XXRESET 192 /* RESET */ 693 #define XXASSOC 193 /* ASSOCIATE */ 694 695 #define ASSOC_FC 0 /* ASSOCIATE FILE-CHARACTER-SET */ 696 #define ASSOC_TC 1 /* ASSOCIATE TRANSFER-CHARACTER-SET */ 697 698 #define XXSHIFT 194 /* SHIFT */ 699 #define XXMAN 195 /* MANUAL */ 700 #define XXLS 196 /* LS */ 701 #define XXSORT 197 /* SORT */ 702 #define XXPURGE 198 /* PURGE */ 703 #define XXFAST 199 /* FAST */ 704 #define XXCAU 200 /* CAUTIOUS */ 705 #define XXROB 201 /* ROBUST */ 706 #define XXMACRO 202 /* Immediate macro */ 707 #define XXSCRN 203 /* SCREEN */ 708 #define XXLNOUT 204 /* LINEOUT */ 709 #define XX_INCR 205 /* _INCREMENT */ 710 #define XX_DECR 206 /* _DECREMENT */ 711 #define XX_EVAL 207 /* _EVALUATE */ 712 #define XXARRAY 208 /* ARRAY */ 713 #define XXPARSE 209 /* PARSE */ 714 #define XXHTTP 210 /* HTTP */ 715 716 #ifdef CKCHANNELIO 717 #define XXFILE 211 /* FILE */ 718 #define XXF_CL 212 /* FCLOSE */ 719 #define XXF_FL 213 /* FFLUSH */ 720 #define XXF_LI 214 /* FLIST */ 721 #define XXF_OP 215 /* FOPEN */ 722 #define XXF_RE 216 /* FREAD */ 723 #define XXF_SE 217 /* FSEEK */ 724 #define XXF_ST 218 /* FSTATUS */ 725 #define XXF_WR 219 /* FWRITE */ 726 #define XXF_RW 220 /* FREWIND */ 727 #define XXF_CO 221 /* FCOUNT */ 728 #endif /* CKCHANNELIO */ 729 730 #define XXEXEC 222 /* exec() */ 731 #define XXTRACE 223 /* TRACE */ 732 #define XXNOTAV 224 /* The "not available" command */ 733 #define XXPTY 225 /* PTY (like PIPE) */ 734 #define XXCHMOD 226 /* CHMOD */ 735 #define XXPROMP 227 /* PROMPT */ 736 #define XXFEACH 228 /* FOREACH */ 737 #define XXGREP 229 /* GREP */ 738 #define XXSEXP 230 /* S-Expression */ 739 #define XXUNDCL 231 /* UNDECLARE */ 740 #define XXVOID 232 /* VOID */ 741 #define XXPUT 233 /* PUT */ 742 #define XXUNDFX 234 /* _UNDEFINE */ 743 #define XXHEAD 235 /* HEAD */ 744 #define XXTAIL 236 /* TAIL */ 745 #define XXDEBUG 237 /* DEBUG */ 746 #define XXLEARN 238 /* LEARN */ 747 #define XXPAT 239 /* PATTERNS (help only) */ 748 749 #define XXCDUP 240 /* CDUP (Change working directory upwards) */ 750 #define XXRCDUP 241 /* REMOTE CDUP */ 751 #define XXCAT 242 /* CAT (= TYPE /NOPAGE) */ 752 #define XXFIREW 243 /* FIREWALL (help only) */ 753 754 #define XXLCWD 244 /* Local C(W)D */ 755 #define XXLCDU 245 /* Local CDUP */ 756 #define XXLPWD 246 /* Local PWD */ 757 #define XXLDEL 247 /* Local DELETE */ 758 #define XXLDIR 248 /* Local DIRECTORY */ 759 #define XXLREN 249 /* Local RENAME */ 760 #define XXLMKD 250 /* Local MKDIR */ 761 #define XXLRMD 251 /* Local RMDIR */ 762 #define XXUSER 252 /* (FTP) USER */ 763 #define XXACCT 253 /* (FTP) ACCOUNT */ 764 #define XXLINK 254 /* LINK source destination */ 765 #define XXORIE 255 /* ORIENT(ATION) */ 766 #define XXDIALER 256 /* DIALER */ 767 #define XXKCD 257 /* KCD */ 768 #define XXSITE 258 /* (FTP) SITE */ 769 #define XXPASV 259 /* (FTP) PASSIVE */ 770 #define XXCONT 260 /* CONTINUE */ 771 #define XXNSCR 261 /* NOSCROLL */ 772 #define XXSFTP 262 /* SFTP */ 773 #define XXSKRM 263 /* SKERMIT */ 774 #define XXWDIR 264 /* WDIRECTORY */ 775 #define XXHDIR 265 /* HDIRECTORY */ 776 #define XXTOUC 266 /* TOUCH */ 777 #define XXLOCU 267 /* LOCUS (for HELP) */ 778 #define XXPUTE 268 /* PUTENV */ 779 #define XXXMSG 269 /* XMESSAGE */ 780 #define XXCHG 270 /* CHANGE */ 781 782 /* End of Top-Level Commands */ 783 784 #define SCN_CLR 0 /* SCREEN CLEAR */ 785 #define SCN_CLE 1 /* SCREEN CLEOL */ 786 #define SCN_MOV 2 /* SCREEN MOVE */ 787 788 /* ARRAY operations */ 789 790 #define ARR_DCL 0 /* Declare */ 791 #define ARR_CPY 1 /* Copy */ 792 #define ARR_RSZ 2 /* Resize */ 793 #define ARR_SRT 3 /* Sort */ 794 #define ARR_CLR 4 /* Clear */ 795 #define ARR_SEA 5 /* Search */ 796 #define ARR_DST 6 /* Destroy */ 797 #define ARR_SHO 7 /* Show */ 798 #define ARR_SET 8 /* Set */ 799 #define ARR_EQU 9 /* Equate */ 800 801 /* SORT options */ 802 803 #define SRT_CAS 0 /* /CASE */ 804 #define SRT_KEY 1 /* /KEY:n */ 805 #define SRT_REV 2 /* /REVERSE */ 806 #define SRT_RNG 3 /* /RANGE:n:m */ 807 #define SRT_NUM 4 /* /NUMERIC */ 808 809 /* PURGE command options */ 810 811 #define PU_KEEP 0 /* /KEEP: */ 812 #define PU_LIST 1 /* /LIST */ 813 #define PU_PAGE 2 /* /PAGE */ 814 #define PU_NOPA 3 /* /NOPAGE */ 815 #define PU_NODE 4 /* /SIMULATE */ 816 #define PU_DELE 5 /* /DELETE */ 817 #define PU_NOLI 6 /* /NOLIST */ 818 #define PU_QUIE 7 /* /QUIET (= NOLIST) */ 819 #define PU_VERB 8 /* /VERBOSE (= LIST) */ 820 #define PU_ASK 9 /* /ASK */ 821 #define PU_NASK 10 /* /NOASK */ 822 #define PU_LAR 11 /* /LARGER-THAN: */ 823 #define PU_SMA 12 /* /SMALLER-THAN: */ 824 #define PU_AFT 13 /* /AFTER: */ 825 #define PU_NAF 14 /* /NOT-AFTER: */ 826 #define PU_BEF 15 /* /BEFORE: */ 827 #define PU_NBF 16 /* /NOT-BEFORE: */ 828 #define PU_EXC 17 /* /EXCEPT: */ 829 #define PU_RECU 18 /* /RECURSIVE */ 830 #define PU_DOT 19 /* /DOTFILES */ 831 #define PU_NODOT 20 /* /NODOTFILES */ 832 #define PU_HDG 21 /* /HEADING */ 833 #define PU_NOH 22 /* /NOHEADING */ 834 835 /* DELETE command options */ 836 837 #define DEL_NOL 0 /* /NOLIST */ 838 #define DEL_LIS 1 /* /LIST */ 839 #define DEL_HDG 2 /* /HEADINGS */ 840 #define DEL_NOH 2 /* /NOHEADINGS */ 841 #define DEL_BEF 3 /* /BEFORE: */ 842 #define DEL_NBF 4 /* /NOT-BEFORE: */ 843 #define DEL_AFT 5 /* /AFTER: */ 844 #define DEL_NAF 6 /* /NOT-AFTER: */ 845 #define DEL_DOT 7 /* /DOTFILES */ 846 #define DEL_NOD 8 /* /NODOTFILES */ 847 #define DEL_EXC 9 /* /EXCEPT:*/ 848 #define DEL_PAG 10 /* /PAGE */ 849 #define DEL_NOP 11 /* /NOPAGE */ 850 #define DEL_REC 12 /* /RECURSIVE */ 851 #define DEL_NOR 13 /* /NORECURSIVE */ 852 #define DEL_VRB 14 /* /VERBOSE */ 853 #define DEL_QUI 15 /* /QUIET */ 854 #define DEL_SMA 16 /* /SMALLER-THAN: */ 855 #define DEL_LAR 17 /* /LARGER-THAN: */ 856 #define DEL_SIM 18 /* /SIMULATE */ 857 #define DEL_ASK 19 /* /ASK */ 858 #define DEL_NAS 20 /* /NOASK */ 859 #define DEL_SUM 21 /* /SUMMARY */ 860 #define DEL_DIR 22 /* /DIRECTORY */ 861 #define DEL_ALL 23 /* /ALL */ 862 #define DEL_TYP 24 /* /TYPE: */ 863 #define DEL_LNK 25 /* /FOLLOWLINKS */ 864 #define DEL_NLK 26 /* /NOFOLLOWLINKS */ 865 866 /* RENAME switches that can be used in the same table as the DEL switches */ 867 868 #define REN_LOW 100 /* Convert to lowercase */ 869 #define REN_UPP 101 /* Converto to uppercase */ 870 #define REN_RPL 102 /* String replacement */ 871 #define REN_OVW 103 /* Overwrite file with same name */ 872 #define REN_XLA 104 /* Translate character sets */ 873 #define REN_SPA 105 /* Fix spaces */ 874 875 /* FILE operations */ 876 877 #define FIL_OPN 0 /* OPEN */ 878 #define FIL_CLS 1 /* CLOSE */ 879 #define FIL_REA 2 /* READ */ 880 #define FIL_GET 3 /* GET */ 881 #define FIL_WRI 4 /* WRITE */ 882 #define FIL_REW 5 /* REWIND */ 883 #define FIL_LIS 6 /* LIST */ 884 #define FIL_FLU 7 /* FLUSH */ 885 #define FIL_SEE 8 /* SEEK */ 886 #define FIL_STA 9 /* STATUS */ 887 #define FIL_COU 10 /* COUNT */ 888 889 /* OPEN / CLOSE items */ 890 891 #define OPN_FI_R 1 /* FILE READ */ 892 #define OPN_FI_W 2 /* FILE WRITE */ 893 #define OPN_FI_A 3 /* FILE APPEND */ 894 #define OPN_PI_R 4 /* PIPE READ */ 895 #define OPN_PI_W 5 /* PIPE WRITE */ 896 #define OPN_PT_R 6 /* PTY READ */ 897 #define OPN_PT_W 7 /* PTY WRITE */ 898 #define OPN_SER 8 /* PORT or LINE */ 899 #define OPN_NET 9 /* HOST */ 900 901 /* KERBEROS command switches */ 902 903 #define KRB_S_VE 0 /* /VERSION */ 904 #define KRB_S_CA 1 /* /CACHE: */ 905 #define KRB_S_MAX 1 /* Highest KERBEROS switch number */ 906 907 #ifdef CK_KERBEROS 908 909 /* KERBEROS actions */ 910 911 #define KRB_A_IN 0 /* INITIALIZE */ 912 #define KRB_A_DE 1 /* DESTROY */ 913 #define KRB_A_LC 2 /* LIST-CREDENTIALS */ 914 915 /* KERBEROS INIT switches */ 916 917 #define KRB_I_FW 0 /* /FORWARDABLE */ 918 #define KRB_I_LF 1 /* /LIFETIME: */ 919 #define KRB_I_PD 2 /* /POSTDATE: */ 920 #define KRB_I_PR 3 /* /PROXIABLE */ 921 #define KRB_I_RB 4 /* /RENEWABLE: */ 922 #define KRB_I_RN 5 /* /RENEW */ 923 #define KRB_I_SR 6 /* /SERVICE: */ 924 #define KRB_I_VA 7 /* /VALIDATE */ 925 #define KRB_I_RL 8 /* /REALM: */ 926 #define KRB_I_IN 9 /* /INSTANCE: */ 927 #define KRB_I_PW 10 /* /PASSWORD: */ 928 #define KRB_I_PA 11 /* /PREAUTH */ 929 #define KRB_I_VB 12 /* /VERBOSE */ 930 #define KRB_I_BR 13 /* /BRIEF */ 931 #define KRB_I_NFW 14 /* /NOT-FORWARDABLE */ 932 #define KRB_I_NPR 15 /* /NOT-PROXIABLE */ 933 #define KRB_I_NPA 16 /* /NOT-PREAUTH */ 934 #define KRB_I_K4 17 /* /KERBEROS4 (should k5 get k4 as well) */ 935 #define KRB_I_NK4 18 /* /NO-KERBEROS4 */ 936 #define KRB_I_POP 19 /* /POPUP */ 937 #define KRB_I_ADR 20 /* /ADDRESSES: */ 938 #define KRB_I_NAD 21 /* /NO-ADDRESSES */ 939 #define KRB_I_MAX 21 /* Highest KERBEROS INIT switch number */ 940 941 #endif /* CK_KERBEROS */ 942 943 /* SET parameters */ 944 945 #define XYBREA 0 /* BREAK simulation */ 946 #define XYCHKT 1 /* Block check type */ 947 #define XYDEBU 2 /* Debugging */ 948 #define XYDELA 3 /* Delay */ 949 #define XYDUPL 4 /* Duplex */ 950 #define XYEOL 5 /* End-Of-Line (packet terminator) */ 951 #define XYESC 6 /* Escape character */ 952 #define XYFILE 7 /* File Parameters (see ckcker.h for values) */ 953 /* (this space available) */ 954 #define XYFLOW 9 /* Flow Control */ 955 #define XYHAND 10 /* Handshake */ 956 #define XYIFD 11 /* Incomplete File Disposition */ 957 #define XYIMAG 12 /* "Image Mode" */ 958 #define XYINPU 13 /* INPUT command parameters */ 959 #define XYLEN 14 /* Maximum packet length to send */ 960 #define XYLINE 15 /* Communication line to use */ 961 962 /* SET LINE / SET HOST command switches */ 963 964 #define SL_CNX 0 /* /CONNECT */ 965 #define SL_SRV 1 /* /SERVER */ 966 #define SL_SHR 2 /* /SHARE */ 967 #define SL_NSH 3 /* /NOSHARE */ 968 #define SL_BEE 4 /* /BEEP */ 969 #define SL_ANS 5 /* /ANSWER */ 970 #define SL_DIA 6 /* /DIAL:xxx */ 971 #define SL_SPD 7 /* /SPEED:xxx */ 972 #define SL_FLO 8 /* /FLOW:xxx */ 973 #define SL_TMO 9 /* /TIMEOUT:xxx */ 974 #define SL_CMD 10 /* /COMMAND */ 975 #define SL_PSW 11 /* /PASSWORD:xxx */ 976 #define SL_IKS 12 /* /KERMIT-SERVICE */ 977 #define SL_NET 13 /* /NETWORK-TYPE:xxx */ 978 #define SL_ENC 14 /* /ENCRYPT:type (telnet) /ENCRYPT (rlogin) */ 979 #define SL_KRB4 15 /* /KERBEROS 4 (rlogin/telnet) */ 980 #define SL_KRB5 16 /* /KERBEROS 5 (rlogin/telnet) */ 981 #define SL_SRP 17 /* /SRP (telnet) */ 982 #define SL_NTLM 18 /* /NTLM (telnet) */ 983 #define SL_SSL 19 /* /SSL (telnet) */ 984 #define SL_UID 20 /* /USERID:xxxx */ 985 #define SL_AUTH 21 /* /AUTH:type */ 986 #define SL_WAIT 22 /* /WAIT */ 987 #define SL_NOWAIT 23 /* /NOWAIT */ 988 #define SL_PTY 24 /* /PTY */ 989 990 #define XYLOG 16 /* Log file */ 991 #define XYMARK 17 /* Start of Packet mark */ 992 #define XYNPAD 18 /* Amount of padding */ 993 #define XYPADC 19 /* Pad character */ 994 #define XYPARI 20 /* Parity */ 995 #define XYPAUS 21 /* Interpacket pause */ 996 #define XYPROM 22 /* Program prompt string */ 997 #define XYQBIN 23 /* 8th-bit prefix */ 998 #define XYQCTL 24 /* Control character prefix */ 999 #define XYREPT 25 /* Repeat count prefix */ 1000 #define XYRETR 26 /* Retry limit */ 1001 #define XYSPEE 27 /* Line speed (baud rate) */ 1002 #define XYTACH 28 /* Character to be doubled */ 1003 #define XYTIMO 29 /* Timeout interval */ 1004 #define XYMODM 30 /* Modem - also see XYDIAL */ 1005 1006 #define XYSEND 31 /* SET SEND parameters */ 1007 #define XYRECV 32 /* SET RECEIVE parameters */ 1008 #define XYTERM 33 /* SET TERMINAL parameters */ 1009 #define XYTBYT 0 /* Terminal Bytesize (7 or 8) */ 1010 #define XYTTYP 1 /* Terminal emulation Type */ 1011 #define TT_NONE 0 /* NONE, no emulation */ 1012 #ifdef OS2 1013 /* 1014 Note, the symbols for VT and VT-like terminals should be in ascending 1015 numerical order, so that higher ones can be treated as supersets of 1016 lower ones with respect to capabilities. 1017 1018 This is no longer the case with the influx of new terminal types. 1019 Just make sure that the ISXXXXX() macros include the proper family 1020 groups. 1021 */ 1022 #define TT_DG200 1 /* Data General 200 */ 1023 #define TT_DG210 2 /* Data General 210 */ 1024 #define TT_DG217 3 /* Data General 217 */ 1025 #define TT_HP2621 4 /* Hewlett-Packard 2621A */ 1026 #define TT_HPTERM 5 /* Hewlett-Packard Console */ 1027 #define TT_HZL1500 6 /* Hazeltine 1500 */ 1028 #define TT_VC4404 7 /* Volker Craig VC4404/404 */ 1029 #define TT_WY30 8 /* WYSE-30/30+ */ 1030 #define TT_WY50 9 /* WYSE-50/50+ */ 1031 #define TT_WY60 10 /* WYSE-60 */ 1032 #define TT_WY160 11 /* WYSE-160 */ 1033 #define TT_QNX 12 /* QNX */ 1034 #define TT_QANSI 13 /* QNX Ansi emulation */ 1035 #define TT_VT52 14 /* DEC VT-52 */ 1036 #define TT_H19 15 /* Heath-19 */ 1037 #define TT_IBM31 16 /* IBM 31xx */ 1038 #define TT_SCOANSI 17 /* SCOANSI (Unix mode) */ 1039 #define TT_AT386 18 /* Unixware AT386 (Unix mode) */ 1040 #define TT_ANSI 19 /* IBM ANSI.SYS (BBS) */ 1041 #define TT_VIP7809 20 /* Honeywell VIP7809 */ 1042 #define TT_LINUX 21 /* Linux Console */ 1043 #define TT_HFT 22 /* IBM High Function Terminal */ 1044 #define TT_AIXTERM 23 /* IBM AIXterm */ 1045 #define TT_SUN 24 /* SUN Console */ 1046 #define TT_BA80 25 /* Nixdorf BA80 */ 1047 #define TT_BEOS 26 /* BeOS Ansi */ 1048 #define TT_VT100 27 /* DEC VT-100 */ 1049 #define TT_VT102 28 /* DEC VT-102 */ 1050 #define TT_VT220 29 /* DEC VT-220 */ 1051 #define TT_VT220PC 30 /* DEC VT-220 with PC keyboard */ 1052 #define TT_VT320 31 /* DEC VT-320 */ 1053 #define TT_VT320PC 32 /* DEC VT-320 with PC keyboard */ 1054 #define TT_WY370 33 /* WYSE 370 ANSI Terminal */ 1055 #define TT_97801 34 /* Sinix 97801-5xx terminal */ 1056 #define TT_AAA 35 /* Ann Arbor Ambassador */ 1057 #define TT_TVI910 36 /* TVI 910+ */ 1058 #define TT_TVI925 37 /* TVI 925 */ 1059 #define TT_TVI950 38 /* TVI950 */ 1060 #define TT_ADM3A 39 /* LSI ADM 3A */ 1061 #define TT_ADM5 40 /* LSI ADM 5 */ 1062 #define TT_VTNT 41 /* Microsoft NT Virtual Terminal */ 1063 #define TT_MAX TT_VTNT 1064 #define TT_VT420 96 /* DEC VT-420 */ 1065 #define TT_VT520 97 /* DEC VT-520/525 */ 1066 #define TT_TEK40 99 /* Tektronix 401x */ 1067 #define TT_KBM_EMACS TT_MAX+1 1068 #define TT_KBM_HEBREW TT_MAX+2 1069 #define TT_KBM_RUSSIAN TT_MAX+3 1070 #define TT_KBM_WP TT_MAX+4 1071 1072 #define ISAAA(x) (x == TT_AAA) 1073 #define ISANSI(x) (x >= TT_SCOANSI && x <= TT_ANSI) 1074 #define ISBA80(x) (x == TT_BA80) 1075 #define ISBEOS(x) (x == TT_BEOS) 1076 #define ISQNX(x) (x == TT_QNX) 1077 #define ISQANSI(x) (x == TT_QANSI) 1078 #define ISLINUX(x) (x == TT_LINUX) 1079 #define ISSCO(x) (x == TT_SCOANSI) 1080 #define ISAT386(x) (x == TT_AT386) 1081 #define ISAVATAR(x) (x == TT_ANSI) 1082 #define ISSUN(x) (x == TT_SUN) 1083 #define ISUNIXCON(x) (x == TT_SCOANSI || x == TT_AT386 || \ 1084 x == TT_LINUX || x == TT_SUN) 1085 #define ISDG200(x) (x >= TT_DG200 && x <= TT_DG217) 1086 #define ISHZL(x) (x == TT_HZL1500) 1087 #define ISH19(x) (x == TT_H19) 1088 #define ISIBM31(x) (x == TT_IBM31) 1089 #define ISTVI(x) (x >= TT_TVI910 && x <= TT_TVI950) 1090 #define ISTVI910(x) (x == TT_TVI910) 1091 #define ISTVI925(x) (x == TT_TVI925) 1092 #define ISTVI950(x) (x == TT_TVI950) 1093 #define ISVT52(x) (x == TT_VT52 || x == TT_H19) 1094 #ifdef COMMENT 1095 #define ISVT520(x) (x == TT_VT520) 1096 #define ISVT420(x) (x >= TT_VT420 && x <= TT_VT520) 1097 #else /* COMMENT */ 1098 /* Since we do not yet support 420/520 extend 320 */ 1099 #define ISVT520(x) (ISVT320(x)) 1100 #define ISVT420(x) (ISVT320(x)) 1101 #endif /* COMMENT */ 1102 #define ISVT320(x) (x >= TT_VT320 && x <= TT_AAA) 1103 #define ISVT220(x) (x >= TT_VT220 && x <= TT_AAA || \ 1104 ISBEOS(x) || ISQANSI(x) || \ 1105 ISLINUX(x) || ISSUN(x)) 1106 #define ISVT102(x) (x >= TT_VIP7809 && x <= TT_BA80 || \ 1107 x == TT_VT102 || ISVT220(x)) 1108 #define ISVT100(x) (x == TT_VT100 || ISVT102(x)) 1109 #define ISWY30(x) (x == TT_WY30) 1110 #define ISWYSE(x) (x >= TT_WY30 && x <= TT_WY160) 1111 #define ISWY50(x) (x == TT_WY50) 1112 #define ISWY60(x) (x == TT_WY60 || x == TT_WY160) 1113 #define ISWY160(x) (x == TT_WY160) 1114 #define ISWY370(x) (x == TT_WY370) 1115 #define ISVC(x) (x == TT_VC4404) 1116 #define ISHP(x) (x == TT_HPTERM || x == TT_HP2621) 1117 #define ISHPTERM(x) (x == TT_HPTERM) 1118 #define ISVIP(x) (x == TT_VIP7809) 1119 #define IS97801(x) (x == TT_97801) 1120 #define ISHFT(x) (x == TT_HFT || x == TT_AIXTERM) 1121 #define ISAIXTERM(x) (x == TT_AIXTERM) 1122 #define ISTEK(x) (x == TT_TEK40) 1123 #define ISVTNT(x) (x == TT_VTNT) 1124 #define ISADM3A(x) (x == TT_ADM3A) 1125 #define ISADM5(x) (x == TT_ADM5) 1126 #endif /* OS2 */ 1127 1128 #define XYTCS 2 /* Terminal Character Set */ 1129 #define XYTSO 3 /* Terminal Shift-In/Shift-Out */ 1130 #define XYTNL 4 /* Terminal newline mode */ 1131 #ifdef OS2 1132 #define XYTCOL 5 /* Terminal colors */ 1133 #endif /* OS2 */ 1134 #define XYTEC 6 /* Terminal echo = duplex = local-echo */ 1135 #ifdef OS2 1136 #define XYTCUR 7 /* Terminal cursor */ 1137 #define TTC_ULINE 0 1138 #define TTC_HALF 1 1139 #define TTC_BLOCK 2 1140 #define XYTARR 8 /* Terminal arrow-key mode */ 1141 #define XYTKPD 9 /* Terminal keypad mode */ 1142 #define TTK_NORM 0 /* Normal mode for arrow / keyad keys */ 1143 #define TTK_APPL 1 /* Application mode for arrow / keyad keys */ 1144 #define XYTWRP 10 /* Terminal wrap */ 1145 #endif /* OS2 */ 1146 #define XYTCRD 11 /* Terminal CR-display */ 1147 #define XYTANS 12 /* Terminal answerback */ 1148 #ifdef OS2 1149 #define XYSCRS 13 /* Terminal scrollback buffer size */ 1150 #endif /* OS2 */ 1151 #define XYTAPC 14 /* Terminal APC */ 1152 #ifdef OS2 1153 #define XYTBEL 15 /* Terminal Bell */ 1154 #endif /* OS2 */ 1155 #define XYTDEB 16 /* Terminal Debug */ 1156 #ifdef OS2 1157 #define XYTROL 17 /* Terminal Rollback */ 1158 #define TTR_OVER 0 /* Rollback Overwrite */ 1159 #define TTR_INSERT 1 /* Rollback Insert */ 1160 #define TTR_KEYS 2 /* Keystrokes */ 1161 #define TTRK_IGN 0 /* Ignore */ 1162 #define TTRK_RST 2 /* Restore and Send */ 1163 #define TTRK_SND 1 /* Send */ 1164 #define XYTCTS 18 /* Terminal Transmit-Timeout */ 1165 #define XYTCPG 19 /* Terminal Code Page */ 1166 #ifdef COMMENT 1167 #define XYTHCU 20 /* Terminal Hide-Cursor */ 1168 #endif /* COMMENT */ 1169 #define XYTPAC 21 /* Terminal Output-Pacing */ 1170 #define XYTMOU 22 /* Terminal Mouse */ 1171 #endif /* OS2 */ 1172 #define XYTHIG 23 /* Terminal Width */ 1173 #define XYTWID 24 /* Terminal Height */ 1174 #ifdef OS2 1175 #define XYTUPD 25 /* Terminal Screen-update */ 1176 #define TTU_FAST 0 /* FAST but jerky */ 1177 #define TTU_SMOOTH 1 /* SMOOTH but slow */ 1178 #define XYTFON 26 /* Terminal Full screen Font */ 1179 #define TTF_ROM 0 /* ROM font */ 1180 #define TTF_CY1 1 /* CYRILL1 font */ 1181 #define TTF_CY2 2 /* CYRILL2 font */ 1182 #define TTF_CY3 3 /* CYRILL3 font */ 1183 #define TTF_111 111 /* CP111 font */ 1184 #define TTF_112 112 /* CP112 font */ 1185 #define TTF_113 113 /* CP113 font */ 1186 #define TTF_437 437 /* CP437 font */ 1187 #define TTF_850 850 /* CP850 font */ 1188 #define TTF_851 851 /* CP851 font */ 1189 #define TTF_852 852 /* CP852 font */ 1190 #define TTF_853 853 /* CP853 font */ 1191 #define TTF_860 860 /* CP860 font */ 1192 #define TTF_861 861 /* CP861 font */ 1193 #define TTF_862 862 /* CP862 font */ 1194 #define TTF_863 863 /* CP863 font */ 1195 #define TTF_864 864 /* CP864 font */ 1196 #define TTF_865 865 /* CP865 font */ 1197 #define TTF_866 866 /* CP866 font */ 1198 #define TTF_880 880 /* CP880 font */ 1199 #define TTF_881 881 /* CP881 font */ 1200 #define TTF_882 882 /* CP882 font */ 1201 #define TTF_883 883 /* CP883 font */ 1202 #define TTF_884 884 /* CP884 font */ 1203 #define TTF_885 885 /* CP885 font */ 1204 #define XYTVCH 27 /* SET TERMINAL VIDEO-CHANGE */ 1205 #define TVC_DIS 0 /* DISABLED */ 1206 #define TVC_ENA 1 /* ENABLED */ 1207 #define TVC_W95 2 /* WIN95-SAFE */ 1208 #endif /* OS2 */ 1209 #define XYTAUTODL 28 /* SET TERMINAL AUTODOWNLOAD */ 1210 #define TAD_OFF 0 /* OFF */ 1211 #define TAD_ON 1 /* ON */ 1212 #define TAD_K 2 /* KERMIT */ 1213 #define TAD_Z 3 /* ZMODEM */ 1214 #define TAD_X_STR 0 /* STRING */ 1215 #define TAD_X_DETECT 1 /* DETECTION ( PACKET, STRING ) */ 1216 #define TAD_X_C0 2 /* C0 CONFLICTS */ 1217 #define TAD_ERR 4 /* ERROR { STOP, CONTINUE } */ 1218 #define TAD_ASK 5 /* ASK (dialog) */ 1219 #define XYTAUTOUL 29 /* SET TERMINAL AUTOUPLOAD */ 1220 #ifdef OS2 1221 #define XYTATTBUG 30 /* SET TERM ATTR-BUG */ 1222 #define XYTSTAT 31 /* SET TERM STATUSLINE */ 1223 #endif /* OS2 */ 1224 #define XYTESC 32 /* SET TERM ESCAPE-CHARACTER */ 1225 #define XYTCTRL 33 /* SET TERM CONTROLS */ 1226 #ifdef OS2 1227 #define XYTATTR 34 /* SET TERM ATTRIBUTE representation */ 1228 #define XYTSGRC 35 /* SET TERM SGRCOLORS */ 1229 #endif /* OS2 */ 1230 #define XYTLCS 36 /* SET TERM LOCAL-CHARACTER-SET */ 1231 #define XYTRCS 37 /* SET TERM REMOTE-CHARACTER-SET */ 1232 #define XYTUNI 38 /* SET TERM UNICODE */ 1233 #define XYTKEY 39 /* SET TERM KEY */ 1234 #ifdef OS2 1235 #define XYTSEND 40 /* SET TERM SEND-DATA */ 1236 #define XYTSEOB 41 /* SET TERM SEND-END-OF-BLOCK */ 1237 #define XYTMBEL 42 /* SET TERM MARGIN-BELL */ 1238 #endif /* OS2 */ 1239 #define XYTIDLE 43 /* SET TERM IDLE-SEND */ 1240 #ifdef OS2 1241 #define XYTKBMOD 44 /* SET TERM KEYBOARD-MODE */ 1242 #define XYTUNX 45 /* SET TERM UNIX-MODE (DG) */ 1243 #define XYTASCRL 46 /* SET TERM AUTOSCROLL */ 1244 #define XYTAPAGE 47 /* SET TERM AUTOPAGE */ 1245 #endif /* OS2 */ 1246 #define XYTRIGGER 48 /* SET TERM TRIGGER */ 1247 #ifdef OS2 1248 #define XYTPCTERM 49 /* SET TERM PCTERM */ 1249 #define XYTOPTI 50 /* SET TERM SCREEN-OPTIMIZE */ 1250 #define XYTSCNM 51 /* SET TERM SCREEN-MODE (DECSCNM) */ 1251 #endif /* OS2 */ 1252 #define XYTPRN 52 /* SET TERM PRINT {AUTO, COPY, OFF} */ 1253 #ifdef OS2 1254 #define XYTSAC 53 /* SET TERM SPACING-ATTRIBUTE-CHARACTER (inv) */ 1255 #define XYTSNIPM 54 /* SET TERM SNI-AUTOROLL */ 1256 #define XYTSNISM 55 /* SET TERM SNI-SCROLLMODE */ 1257 #define XYTKBDGL 56 /* SET TERM KBD-FOLLOWS-GL/GR */ 1258 #define XYTVTLNG 57 /* SET TERM VT-LANGUAGE */ 1259 #define VTL_NORTH_AM 1 1260 #define VTL_BRITISH 2 1261 #define VTL_BELGIAN 3 1262 #define VTL_FR_CAN 4 1263 #define VTL_DANISH 5 1264 #define VTL_FINNISH 6 1265 #define VTL_GERMAN 7 1266 #define VTL_DUTCH 8 1267 #define VTL_ITALIAN 9 1268 #define VTL_SW_FR 10 1269 #define VTL_SW_GR 11 1270 #define VTL_SWEDISH 12 1271 #define VTL_NORWEGIA 13 1272 #define VTL_FRENCH 14 1273 #define VTL_SPANISH 15 1274 #define VTL_PORTUGES 16 1275 #define VTL_HEBREW 19 1276 #define VTL_GREEK 22 1277 #define VTL_CANADIAN 28 1278 #define VTL_TURK_Q 29 1279 #define VTL_TURK_F 30 1280 #define VTL_HUNGARIA 31 1281 #define VTL_SLOVAK 33 1282 #define VTL_CZECH 34 1283 #define VTL_POLISH 35 1284 #define VTL_ROMANIAN 36 1285 #define VTL_SCS 38 1286 #define VTL_RUSSIAN 39 1287 #define VTL_LATIN_AM 40 1288 #define XYTVTNRC 58 /* SET TERM VT-NRC-MODE */ 1289 #define XYTSNICC 59 /* SET TERM SNI-CH.CODE */ 1290 #define XYTSNIFV 60 /* SET TERM SNI-FIRMWARE-VERSIONS */ 1291 #define XYTURLHI 61 /* SET TERM URL-HIGHLIGHT */ 1292 #endif /* OS2 */ 1293 #define XYTITMO 62 /* SET TERM IDLE-TIMEOUT */ 1294 #define XYTIACT 63 /* SET TERM IDLE-ACTION */ 1295 #define XYTLSP 64 /* SET TERM LINE-SPACING */ 1296 #define XYTLFD 65 /* SET TERM LF-DISPLAY */ 1297 1298 #define XYATTR 34 /* Attribute packets */ 1299 #define XYSERV 35 /* Server parameters */ 1300 #define XYSERT 0 /* Server timeout */ 1301 #define XYSERD 1 /* Server display */ 1302 #define XYSERI 2 /* Server idle */ 1303 #define XYSERP 3 /* Server get-path */ 1304 #define XYSERL 4 /* Server login */ 1305 #define XYSERC 5 /* Server CD-Message */ 1306 #define XYSERK 6 /* Server keepalive */ 1307 #define XYWIND 36 /* Window size */ 1308 #define XYXFER 37 /* Transfer */ 1309 #define XYX_CAN 0 /* Cancellation */ 1310 #define XYX_CSE 1 /* Character-Set */ 1311 #define XYX_LSH 2 /* Locking-Shift */ 1312 #define XYX_PRO 3 /* Protocol */ 1313 #define XYX_MOD 4 /* Mode */ 1314 #define XYX_DIS 5 /* Display */ 1315 #define XYX_SLO 6 /* Slow-start */ 1316 #define XYX_CRC 7 /* CRC calculation */ 1317 #define XYX_BEL 8 /* Bell */ 1318 #define XYX_PIP 9 /* Pipes */ 1319 #define XYX_INT 10 /* Interruption */ 1320 #define XYX_XLA 11 /* (character-set) Translation On/Off */ 1321 #define XYX_MSG 12 /* Message */ 1322 #define XYX_RPT 13 /* Report */ 1323 #define XYLANG 38 /* Language */ 1324 #define XYCOUN 39 /* Count */ 1325 #define XYTAKE 40 /* Take */ 1326 #define XYUNCS 41 /* Unknown-character-set */ 1327 #define XYKEY 42 /* Key */ 1328 #define XYMACR 43 /* Macro */ 1329 #define XYHOST 44 /* Hostname on network */ 1330 #define XYNET 45 /* SET NETWORK things */ 1331 1332 #define XYNET_D 99 /* NETWORK DIRECTORY */ 1333 #define XYNET_T 100 /* NETWORK TYPE */ 1334 1335 #define XYCARR 46 /* Carrier */ 1336 #define XYXMIT 47 /* Transmit */ 1337 1338 #define XYDIAL 48 /* Dial options */ 1339 1340 /* And now we interrupt the flow to bring you lots of stuff about dialing */ 1341 1342 #ifndef MAXTOLLFREE /* Maximum number of toll-free area codes */ 1343 #define MAXTOLLFREE 8 1344 #endif /* MAXTOLLFREE */ 1345 1346 #ifndef MAXTPCC /* Maximum Tone or Pulse dialing countries */ 1347 #define MAXTPCC 160 1348 #endif /* MAXTPCC */ 1349 1350 #ifndef MAXPBXEXCH /* Maximum number of PBX exchanges */ 1351 #define MAXPBXEXCH 8 1352 #endif /* MAXPBXEXCH */ 1353 1354 #ifndef MAXLOCALAC 1355 #define MAXLOCALAC 32 1356 #endif /* MAXLOCALAC */ 1357 1358 #ifndef MAXDNUMS 1359 #ifdef BIGBUFOK 1360 #define MAXDDIR 32 /* Maximum number of dialing directories */ 1361 #define MAXDNUMS 4095 /* Max numbers to fetch from dialing directories */ 1362 #else 1363 #define MAXDDIR 12 1364 #define MAXDNUMS 1024 1365 #endif /* BIGBUFOK */ 1366 #endif /* MAXDNUMS */ 1367 /* 1368 IMPORTANT: In 5A(192), the old SET DIAL command was split into two commands: 1369 SET MODEM (for modem-related parameters) and SET DIAL (for dialing items). 1370 To preserve the old formats, etc, invisibly we keep one symbol space for 1371 both commands. 1372 */ 1373 #define XYDHUP 0 /* Dial Hangup */ 1374 #define XYDINI 1 /* MODEM (dial) Initialization string */ 1375 #define XYDKSP 2 /* MODEM (dial) Kermit-Spoof */ 1376 #define XYDTMO 3 /* Dial Timeout */ 1377 #define XYDDPY 4 /* Dial Display */ 1378 #define XYDSPD 5 /* Dial Speed matching */ 1379 #define XYDMNP 6 /* MODEM (dial) MNP negotiation enabled (obsolete) */ 1380 #define XYDEC 7 /* MODEM (dial) error correction enabled */ 1381 #define XYDDC 8 /* MODEM (dial) compression enabled */ 1382 #define XYDHCM 9 /* MODEM (dial) hangup-string (moved elsewhere) */ 1383 #define XYDDIR 10 /* Dial directory */ 1384 #define XYDDIA 11 /* MODEM (dial) dial-command */ 1385 #define XYDMHU 12 /* MODEM HANGUP (dial modem-hangup) */ 1386 1387 #ifndef DEFMDHUP /* Default MODEM HANGUP-METHOD */ 1388 #define DEFMDMHUP 1 /* 0 = RS232, 1 = modem command */ 1389 #endif /* DEFMDMHUP */ 1390 1391 #define XYDNPR 13 /* Dial PREFIX */ 1392 #define XYDSTR 14 /* MODEM COMMAND (dial string) ... */ 1393 1394 #define XYDS_DC 0 /* Data compression */ 1395 #define XYDS_EC 1 /* Error correction */ 1396 #define XYDS_HU 2 /* Hangup command */ 1397 #define XYDS_HW 3 /* Hardware flow control */ 1398 #define XYDS_IN 4 /* Init-string */ 1399 #define XYDS_NF 5 /* No flow control */ 1400 #define XYDS_PX 6 /* Prefix (no, this goes in SET DIAL) */ 1401 #define XYDS_SW 7 /* Software flow control */ 1402 #define XYDS_DT 8 /* Tone dialing command */ 1403 #define XYDS_DP 9 /* Pulse dialing command */ 1404 #define XYDS_AN 10 /* Autoanswer */ 1405 #define XYDS_RS 11 /* Reset */ 1406 #define XYDS_MS 12 /* Dial mode string */ 1407 #define XYDS_MP 13 /* Dial mode prompt */ 1408 #define XYDS_SP 14 /* Modem speaker */ 1409 #define XYDS_VO 15 /* Modem speaker volume */ 1410 #define XYDS_ID 16 /* Ignore dialtone */ 1411 #define XYDS_I2 17 /* Init string #2 */ 1412 1413 #define XYDM_A 9 /* Method: Auto */ 1414 #define XYDM_D 0 /* Default */ 1415 #define XYDM_T 2 /* Tone */ 1416 #define XYDM_P 3 /* Pulse */ 1417 1418 #define XYDFC 15 /* MODEM (dial) flow-control */ 1419 #define XYDMTH 16 /* Dial method */ 1420 #define XYDESC 17 /* MODEM (dial) escape-character */ 1421 #define XYDMAX 18 /* MODEM (dial) maximum interface speed */ 1422 #define XYDCAP 19 /* MODEM (dial) capabilities */ 1423 #define XYDTYP 20 /* MODEM TYPE */ 1424 #define XYDINT 21 /* DIAL retries */ 1425 #define XYDRTM 22 /* DIAL time between retries */ 1426 #define XYDNAM 23 /* MODEM NAME */ 1427 #define XYDLAC 24 /* DIAL (LOCAL-)AREA-CODE */ 1428 #define XYDMCD 25 /* MODEM CARRIER */ 1429 1430 #define XYDCNF 26 /* DIAL CONFIRMATION */ 1431 #define XYDCVT 27 /* DIAL CONVERT-DIRECTORY */ 1432 #define XYDIXP 28 /* DIAL INTERNATIONAL-PREFIX */ 1433 #define XYDIXS 29 /* DIAL INTERNATIONAL-SUFFIX */ 1434 #define XYDLCC 30 /* DIAL LOCAL-COUNTRY-CODE */ 1435 #define XYDLDP 31 /* DIAL LONG-DISTANCE-PREFIX */ 1436 #define XYDLDS 32 /* DIAL LONG-DISTANCE-SUFFIX */ 1437 #define XYDPXX 33 /* DIAL PBX-EXCHANGE */ 1438 #define XYDPXI 34 /* DIAL PBX-INTERNAL-PREFIX */ 1439 #define XYDPXO 35 /* DIAL PBX-OUTSIDE-PREFIX */ 1440 #define XYDSFX 36 /* DIAL SUFFIX */ 1441 #define XYDSRT 37 /* DIAL SORT */ 1442 #define XYDTFC 38 /* DIAL TOLL-FREE-AREA-CODE */ 1443 #define XYDTFP 39 /* DIAL TOLL-FREE-PREFIX */ 1444 #define XYDTFS 40 /* DIAL TOLL-FREE-SUFFIX */ 1445 #define XYDCON 41 /* DIAL CONNECT */ 1446 #define XYDRSTR 42 /* DIAL RESTRICT */ 1447 #define XYDRSET 43 /* MODEM RESET */ 1448 #define XYDLCP 44 /* DIAL LOCAL-PREFIX */ 1449 #define XYDLCS 45 /* DIAL LOCAL-SUFFIX */ 1450 #define XYDLLAC 46 /* DIAL LC-AREA-CODES */ 1451 #define XYDFLD 47 /* DIAL FORCE LONG-DISTANCE */ 1452 #define XYDSPK 48 /* MODEM SPEAKER */ 1453 #define XYDVOL 49 /* MODEM VOLUME */ 1454 #define XYDIDT 50 /* IGNORE DIALTONE */ 1455 #define XYDPAC 51 /* PACING */ 1456 #define XYDMAC 52 /* MACRO */ 1457 #define XYDPUCC 53 /* PULSE-COUNTRIES */ 1458 #define XYDTOCC 54 /* TONE-COUNTRIES */ 1459 #define XYDTEST 55 /* TEST */ 1460 1461 #define XYA_CID 1 /* SET ANSWER CALLER-ID */ 1462 #define XYA_RNG 2 /* SET ANSWER RINGS */ 1463 1464 #define XYSESS 49 /* SET SESSION options */ 1465 #define XYBUF 50 /* Buffer length */ 1466 #define XYBACK 51 /* Background */ 1467 #define XYDFLT 52 /* Default */ 1468 #define XYDBL 53 /* Double */ 1469 #define XYCMD 54 /* COMMAND */ 1470 #define XYCASE 55 /* Case */ 1471 #define XYCOMP 56 /* Compression */ 1472 #define XYX25 57 /* X.25 parameter (ANYX25) */ 1473 #define XYPAD 58 /* X.3 PAD parameter (ANYX25) */ 1474 #define XYWILD 59 /* Wildcard expansion method */ 1475 1476 #define WILD_OFF 0 /* Wildcard expansion off */ 1477 #define WILD_ON 1 /* Wildcard expansion on */ 1478 #define WILD_KER 2 /* Wildcard expansion by Kermit */ 1479 #define WILD_SHE 3 /* Wildcard expansion by Shell */ 1480 1481 #define XYSUSP 60 /* Suspend */ 1482 #define XYMAIL 61 /* Mail-Command */ 1483 #define XYPRIN 62 /* Print-Command */ 1484 #define XYQUIE 63 /* Quiet */ 1485 #define XYLCLE 64 /* Local-echo */ 1486 #define XYSCRI 65 /* SCRIPT command parameters */ 1487 #define XYMSGS 66 /* MESSAGEs ON/OFF */ 1488 #ifdef TNCODE 1489 #define XYTEL 67 /* SET TELNET parameters */ 1490 #define CK_TN_EC 0 /* TELNET ECHO */ 1491 #define CK_TN_TT 1 /* TELNET TERMINAL-TYPE */ 1492 #define CK_TN_NL 2 /* TELNET NEWLINE-MODE */ 1493 #define CK_TN_BM 3 /* TELNET BINARY-MODE */ 1494 #define CK_TN_BUG 4 /* TELNET BUG */ 1495 #define CK_TN_ENV 5 /* TELNET ENVIRONMENT */ 1496 #define TN_ENV_USR 0 /* VAR USER */ 1497 #define TN_ENV_JOB 1 /* VAR JOB */ 1498 #define TN_ENV_ACCT 2 /* VAR ACCT */ 1499 #define TN_ENV_PRNT 3 /* VAR PRINTER */ 1500 #define TN_ENV_SYS 4 /* VAR SYSTEMTYPE */ 1501 #define TN_ENV_DISP 5 /* VAR DISPLAY */ 1502 #define TN_ENV_UVAR 6 /* USERVAR */ 1503 #define TN_ENV_LOC 7 /* USERVAR LOCATION */ 1504 #define TN_ENV_ON 98 /* ON (enabled) */ 1505 #define TN_ENV_OFF 99 /* OFF (disabled) */ 1506 #define CK_TN_LOC 6 /* TELNET LOCATION */ 1507 #define CK_TN_AU 7 /* TELNET AUTHENTICATION */ 1508 #define TN_AU_FWD 4 /* AUTH FORWARD */ 1509 #define TN_AU_TYP 5 /* AUTH TYPE */ 1510 #define AUTH_NONE 0 /* AUTH NONE */ 1511 #define AUTH_KRB4 1 /* AUTH Kerberos IV */ 1512 #define AUTH_KRB5 2 /* AUTH Kerberos V */ 1513 #define AUTH_SSL 7 /* AUTH Secure Sockets Layer */ 1514 #define AUTH_TLS 98 /* AUTH Transport Layer Security */ 1515 #define AUTH_SRP 5 /* AUTH Secure Remote Password */ 1516 #define AUTH_NTLM 15 /* AUTH NT Lan Manager */ 1517 #define AUTH_AUTO 99 /* AUTH AUTOMATIC */ 1518 #define TN_AU_HOW 8 /* AUTH HOW FLAG */ 1519 #define TN_AU_ENC 9 /* AUTH ENCRYPT FLAG */ 1520 #define CK_TN_ENC 8 /* TELNET ENCRYPTION */ 1521 #define TN_EN_TYP 4 /* ENCRYPT TYPE */ 1522 #define TN_EN_START 5 /* ENCRYPT START */ 1523 #define TN_EN_STOP 6 /* ENCRYPT STOP */ 1524 #define CK_TN_IKS 9 /* TELNET KERMIT-SERVER */ 1525 #define CK_TN_RE 10 /* TELNET REMOTE-ECHO */ 1526 #define CK_TN_TLS 11 /* TELNET START_TLS */ 1527 #define CK_TN_XD 12 /* TELNET XDISPLOC */ 1528 #define CK_TN_NAWS 13 /* TELNET NAWS */ 1529 #define CK_TN_WAIT 14 /* TELNET WAIT-FOR-NEGOTIATIONS */ 1530 #define CK_TN_SGA 15 /* TELNET SGA */ 1531 #define CK_TN_CLIENT 16 /* TELNET CLIENT */ 1532 #define CK_TN_SERVER 17 /* TELNET SERVER */ 1533 #define CK_TN_PHR 18 /* TELNET PRAGMA-HEARTBEAT */ 1534 #define CK_TN_PLG 19 /* TELNET PRAGMA-LOGON */ 1535 #define CK_TN_PSP 20 /* TELNET PRAGMA-SSPI */ 1536 #define CK_TN_SAK 21 /* TELNET IBM SAK */ 1537 #define CK_TN_FLW 22 /* TELNET LFLOW */ 1538 #define CK_TN_XF 23 /* TELNET TRANSFER-MODE */ 1539 #define CK_TN_PUID 24 /* TELNET PROMPT-FOR-USERID */ 1540 #define CK_TN_NE 25 /* TELNET NO-ENCRYPT-DURING-XFER */ 1541 #define CK_TN_CPC 26 /* TELNET COM-PORT-CONTROL */ 1542 #define CK_TN_DB 27 /* TELNET DEBUG */ 1543 #define CK_TN_FX 28 /* TELNET FORWARD_X */ 1544 #define CK_TN_DL 29 /* TELNET DELAY-SB */ 1545 #define CK_TN_SFU 30 /* TELNET SFU-COMPATIBILITY */ 1546 #define CK_TN_LOG 31 /* TELNET LOGOUT */ 1547 #endif /* TNCODE */ 1548 #define XYOUTP 68 /* OUTPUT command parameters */ 1549 #define OUT_PAC 0 /* OUTPUT PACING */ 1550 #define OUT_ESC 1 /* OUTPUT SPECIAL-ESCAPES */ 1551 #define XYEXIT 69 /* SET EXIT */ 1552 #define XYPRTR 70 /* SET PRINTER */ 1553 #define XYFPATH 71 /* PATHNAME */ 1554 1555 #ifdef OS2 1556 #define XYMOUSE 72 /* MOUSE SUPPORT */ 1557 #define XYM_ON 0 /* Mouse ON/OFF */ 1558 #define XYM_BUTTON 1 /* Define Mouse Events */ 1559 #define XYM_CLEAR 2 /* Clear Mouse Events */ 1560 #define XYM_DEBUG 3 /* Debug Mode ON/OFF */ 1561 /* These must match similar definitions in ckokey.h */ 1562 #define XYM_B1 0 /* Mouse Button One */ 1563 #define XYM_B2 1 /* Mouse Button Two */ 1564 #define XYM_B3 2 /* Mouse Button Three */ 1565 #define XYM_ALT 1 /* Alt */ 1566 #define XYM_CTRL 2 /* Ctrl */ 1567 #define XYM_SHIFT 4 /* Shift */ 1568 #define XYM_C1 0 /* Single Click */ 1569 #define XYM_C2 8 /* Double Click */ 1570 #define XYM_DRAG 16 /* Drag Event */ 1571 #endif /* OS2 */ 1572 1573 #define XYBELL 73 /* BELL */ 1574 1575 #ifdef OS2 1576 #define XYPRTY 74 /* Thread Priority Level */ 1577 #define XYP_IDLE 1 1578 #define XYP_REG 2 1579 #define XYP_SRV 4 1580 #define XYP_RTP 3 1581 #endif /* OS2 */ 1582 1583 #define XYALRM 75 /* SET ALARM */ 1584 #define XYPROTO 76 /* SET PROTOCOL */ 1585 #define XYPREFIX 77 /* SET PREFIXING */ 1586 #define XYLOGIN 78 /* Login info for script programs... */ 1587 1588 #define LOGI_UID 0 /* User ID */ 1589 #define LOGI_PSW 1 /* Password */ 1590 #define LOGI_PRM 2 /* Prompt */ 1591 1592 #define XYSTARTUP 79 /* Startup file */ 1593 #define XYTMPDIR 80 /* Temporary directory */ 1594 1595 #ifdef OS2 1596 #define XYTAPI 81 /* Microsoft Telephone API options */ 1597 #define XYTAPI_CFG 1 /* TAPI Configure-Line Dialog */ 1598 #define XYTAPI_DIAL 2 /* TAPI Dialing-Properties Dialog */ 1599 #define XYTAPI_LIN 3 /* TAPI Line */ 1600 #define XYTAPI_LOC 4 /* TAPI Location */ 1601 #define XYTAPI_PASS 5 /* TAPI Passthrough */ 1602 #define XYTAPI_CON 6 /* TAPI Conversions */ 1603 #define XYTAPI_LGHT 7 /* TAPI Modem Lights */ 1604 #define XYTAPI_PRE 8 /* TAPI Pre-dialing Terminal */ 1605 #define XYTAPI_PST 9 /* TAPI Post-dialing Terminal */ 1606 #define XYTAPI_INA 10 /* TAPI Inactivity Timeout */ 1607 #define XYTAPI_BNG 11 /* TAPI Wait for Credit Card Tone */ 1608 #define XYTAPI_MAN 12 /* TAPI Manual Dialing */ 1609 #define XYTAPI_USE 13 /* TAPI Use Line Config settings */ 1610 #endif /* OS2 */ 1611 1612 #ifdef TCPSOCKET 1613 #define XYTCP 82 /* TCP options */ 1614 #define XYTCP_NODELAY 1 /* No Delay */ 1615 #define XYTCP_SENDBUF 2 /* Send Buffer Size */ 1616 #define XYTCP_LINGER 3 /* Linger */ 1617 #define XYTCP_RECVBUF 4 /* Receive Buffer Size */ 1618 #define XYTCP_KEEPALIVE 5 /* Keep Alive packets */ 1619 #define XYTCP_UCX 6 /* UCX 2.0 port swabbing bug */ 1620 #define XYTCP_NAGLE 7 /* Delay - inverse of 1 */ 1621 #define XYTCP_RDNS 8 /* Reverse DNS lookup */ 1622 #define XYTCP_ADDRESS 9 /* Set preferred IP Address */ 1623 #define XYTCP_DNS_SRV 10 /* Use DNS Service Records */ 1624 #define XYTCP_DONTROUTE 11 /* Dont Route */ 1625 #define XYTCP_SOCKS_SVR 12 /* Name of Socks Server */ 1626 #define XYTCP_HTTP_PROXY 13 /* Name/Port of HTTP Proxy Server */ 1627 #define XYTCP_SOCKS_NS 14 /* Name of Socks Name Server */ 1628 #endif /* TCPSOCKET */ 1629 1630 #ifdef OS2 1631 #define XYMSK 83 /* MS-DOS Kermit compatibility options */ 1632 #define MSK_COLOR 0 /* Terminal color handling */ 1633 #define MSK_KEYS 1 /* SET KEY uses MSK keycodes */ 1634 #define MSK_REN 2 /* File renaming uses 8.3 notation always */ 1635 #endif /* OS2 */ 1636 1637 #define XYDEST 84 /* SET DESTINATION as in MS-DOS Kermit */ 1638 1639 #ifdef OS2 1640 #define XYWIN95 85 /* SET WIN95 work arounds */ 1641 #define XYWKEY 0 /* Keyboard translation */ 1642 #define XYWAGR 1 /* Alt-Gr */ 1643 #define XYWOIO 2 /* Overlapped I/O */ 1644 #define XYWLUC 3 /* Lucida Console substitutions */ 1645 #define XYWSELECT 4 /* Select on Write Bug */ 1646 #define XYW8_3 5 /* Use 8.3 filenames? */ 1647 #define XYWPOPUP 6 /* Use Popups? */ 1648 #define XYWHSL 7 /* Horz Scan Line substitutions */ 1649 #define XYDLR 86 /* SET K95 DIALER work arounds */ 1650 #define XYTITLE 87 /* SET TITLE of window */ 1651 #endif /* OS2 */ 1652 1653 #define XYIGN 88 /* SET IGNORE-CHARACTER */ 1654 #define XYEDIT 89 /* SET EDITOR */ 1655 #define XYFLTR 90 /* SET { SEND, RECEIVE } FILTER */ 1656 #define XYBROWSE 91 /* SET BROWSER */ 1657 #define XYEOF 92 /* EOF (= FILE EOF) */ 1658 #ifdef OS2 1659 #define XYBDCP 93 /* BPRINTER */ 1660 #endif /* OS2 */ 1661 #define XYFLAG 94 /* FLAG */ 1662 #define XYLIMIT 95 /* SESSION-LIMIT */ 1663 #define XYINIL 96 /* Protocol negotiation string max length */ 1664 #define XYRELY 97 /* RELIABLE */ 1665 #define XYSTREAM 98 /* STREAMING */ 1666 #define XYTLOG 99 /* TRANSACTION-LOG */ 1667 #define XYCLEAR 100 /* CLEARCHANNEL */ 1668 #define XYAUTH 101 /* AUTHENTICATION */ 1669 1670 #ifdef TNCODE 1671 #define XYKRBPR 0 /* Kerberos Principal */ 1672 #define XYKRBRL 1 /* Kerberos Realm */ 1673 #define XYKRBCC 2 /* Kerberos 5 Credentials-Cache */ 1674 #define XYKRBSRV 3 /* Kerberos Service Name */ 1675 #define XYKRBDBG 4 /* Kerberos Debugging */ 1676 #define XYKRBLIF 5 /* Kerberos Lifetime */ 1677 #define XYKRBPRE 6 /* Kerberos 4 Preauth */ 1678 #define XYKRBINS 7 /* Kerberos 4 Instance */ 1679 #define XYKRBFWD 8 /* Kerberos 5 Forwardable */ 1680 #define XYKRBPRX 9 /* Kerberos 5 Proxiable */ 1681 #define XYKRBRNW 10 /* Kerberos 5 Renewable lifetime */ 1682 #define XYKRBGET 11 /* Kerberos Auto-Get-TGTs */ 1683 #define XYKRBDEL 12 /* Kerberos Auto-Destroy-TGTs */ 1684 #define KRB_DEL_NO 0 /* Kerberos No Auto Destroy */ 1685 #define KRB_DEL_CL 1 /* Kerberos Auto Destory on Close */ 1686 #define KRB_DEL_EX 2 /* Kerberos Auto Destroy on Exit */ 1687 #define XYKRBK5K4 13 /* Kerberos 5 Get K4 Tickets */ 1688 #define XYKRBPRM 14 /* Kerberos 4/5 Prompt */ 1689 #define XYKRBADR 15 /* Kerberos 4/5 CheckAddrs */ 1690 #define XYKRBNAD 16 /* Kerberos 5 No Addresses */ 1691 #define XYKRBADD 17 /* Kerberos 5 Address List */ 1692 #define XYKRBKTB 18 /* Kerberos 4/5 Key Table */ 1693 #define XYSRPPRM 0 /* SRP Prompt */ 1694 #define XYSSLRCFL 0 /* SSL/TLS RSA Certs file */ 1695 #define XYSSLCOK 1 /* SSL/TLS Certs-Ok flag */ 1696 #define XYSSLCRQ 2 /* SSL/TLS Certs-Required flag */ 1697 #define XYSSLCL 3 /* SSL/TLS Cipher List */ 1698 #define XYSSLDBG 4 /* SSL/TLS Debug flag */ 1699 #define XYSSLRKFL 5 /* SSL/TLS RSA Key File */ 1700 #define XYSSLLFL 6 /* SSL/TLS Log File */ 1701 #define XYSSLON 7 /* SSL/TLS Only flag */ 1702 #define XYSSLSEC 8 /* SSL/TLS Secure flag */ 1703 #define XYSSLVRB 9 /* SSL/TLS Verbose flag */ 1704 #define XYSSLVRF 10 /* SSL/TLS Verify flag */ 1705 #define XYSSLDUM 11 /* SSL/TLS Dummy flag */ 1706 #define XYSSLDCFL 12 /* SSL/TLS DSA Certs file */ 1707 #define XYSSLDKFL 13 /* SSL/TLS DH Certs file */ 1708 #define XYSSLDPFL 14 /* SSL/TLS DH Param file */ 1709 #define XYSSLCRL 15 /* SSL/TLS CRL file */ 1710 #define XYSSLCRLD 16 /* SSL/TLS CRL dir */ 1711 #define XYSSLVRFF 17 /* SSL/TLS Verify file */ 1712 #define XYSSLVRFD 18 /* SSL/TLS Verify dir */ 1713 #define XYSSLRND 19 /* SSL/TLS Random file */ 1714 #define XYSSLDCCF 20 /* SSL/TLS DSA Certs Chain File */ 1715 #define XYSSLRCCF 21 /* SSL/TLS RSA Certs Chain File */ 1716 1717 /* The following must be powers of 2 for a bit mask */ 1718 1719 #define XYKLCEN 1 /* Kerberos List Credentials: Encryption */ 1720 #define XYKLCFL 2 /* Kerberos List Credentials: Flags */ 1721 #define XYKLCAD 4 /* Kerberos List Credentials: Addresses */ 1722 #endif /* TNCODE */ 1723 1724 #define XYFUNC 102 /* SET FUNCTION */ 1725 1726 #define FUNC_DI 0 /* FUNCTION DIAGNOSTICS */ 1727 #define FUNC_ER 1 /* FUNCTION ERROR */ 1728 1729 #define XYFTP 103 /* FTP application */ 1730 #define XYSLEEP 104 /* SLEEP / PAUSE options */ 1731 #define XYSSH 105 /* SSH options */ 1732 #define XYTELOP 106 /* TELNET OPTIONS (TELOPT) */ 1733 #define XYCD 107 /* SET CD */ 1734 #define XYCSET 108 /* CHARACTER-SET */ 1735 #define XYSTOP 109 /* STOP-BITS */ 1736 #define XYSERIAL 110 /* SERIAL */ 1737 #define XYDISC 111 /* CLOSE-ON-DISCONNECT */ 1738 #define XYOPTS 112 /* OPTIONS */ 1739 #define XYQ8FLG 113 /* Q8FLAG (invisible) */ 1740 #define XYTIMER 114 /* TIMER */ 1741 #define XYFACKB 115 /* F-ACK-BUG */ 1742 #define XYBUP 116 /* SET SEND/RECEIVE BACKUP */ 1743 #define XYMOVE 117 /* SET SEND/RECEIVE MOVE-TO */ 1744 #define XYRENAME 118 /* SET SEND/RECEIVE RENAME-TO */ 1745 #define XYHINTS 119 /* SET HINTS */ 1746 #define XYEVAL 120 /* SET EVALUATE */ 1747 #define XYFACKP 121 /* F-ACK-PATH */ 1748 #define XYSYSL 122 /* SysLog */ 1749 #define XYQNXPL 123 /* QNX Port Lock */ 1750 #define XYIKS 124 /* SET IKS ... */ 1751 #define XYROOT 125 /* SET ROOT */ 1752 #define XYFTPX 126 /* SET FTP */ 1753 #define XYSEXP 127 /* SET SEXP */ 1754 #define XYGPR 128 /* SET GET-PUT-REMOTE */ 1755 #define XYLOCUS 129 /* SET LOCUS */ 1756 #define XYGUI 130 /* SET GUI */ 1757 #define XYANSWER 131 /* SET ANSWER */ 1758 #define XYMATCH 132 /* SET MATCHDOT */ 1759 #define XYSFTP 133 /* SET SFTP */ 1760 #define XY_REN 134 /* SET RENAME */ 1761 #define XYEXTRN 135 /* SET EXTERNAL-PROTOCOL */ 1762 #define XYVAREV 136 /* SET VARIABLE-EVALUATION */ 1763 #define XYLOCALE 137 /* SET LOCALE */ 1764 1765 /* End of SET commands */ 1766 1767 /* S-Expressions -- floating-point support required */ 1768 1769 #ifndef CKFLOAT 1770 #ifndef NOSEXP 1771 #define NOSEXP 1772 #endif /* NOSEXP */ 1773 #endif /* CKFLOAT */ 1774 1775 /* Maximum number of elements in an S-Expression */ 1776 1777 #ifndef NOSEXP 1778 #ifndef SEXPMAX 1779 #ifdef BIGBUFOK 1780 #define SEXPMAX 1024 1781 #else 1782 #define SEXPMAX 32 1783 #endif /* BIGBUFOK */ 1784 #endif /* SEXPMAX */ 1785 #endif /* NOSEXP */ 1786 1787 #ifdef ANYX25 1788 /* PAD command parameters */ 1789 1790 #define XYPADL 0 /* clear virtual call */ 1791 #define XYPADS 1 /* status of virtual call */ 1792 #define XYPADR 2 /* reset of virtual call */ 1793 #define XYPADI 3 /* send an interrupt packet */ 1794 1795 /* Used with XYX25... */ 1796 #define XYUDAT 0 /* X.25 call user data */ 1797 #define XYCLOS 1 /* X.25 closed user group call */ 1798 #define XYREVC 2 /* X.25 reverse charge call */ 1799 #endif /* ANYX25 */ 1800 1801 #ifdef OS2 1802 /* SET PRINTER switches */ 1803 1804 #define PRN_OUT 0 /* Output only */ 1805 #define PRN_BID 1 /* Bidirectional */ 1806 #define PRN_DOS 2 /* DOS device */ 1807 #define PRN_WIN 3 /* Windows queue */ 1808 #define PRN_TMO 4 /* Timeout */ 1809 #define PRN_TRM 5 /* Terminator */ 1810 #define PRN_SEP 6 /* Separator */ 1811 #define PRN_SPD 7 /* COM-port speed */ 1812 #define PRN_FLO 8 /* COM-port flow control */ 1813 #define PRN_PAR 9 /* COM-port parity */ 1814 #define PRN_NON 10 /* No printer */ 1815 #define PRN_FIL 11 /* Filename */ 1816 #define PRN_PIP 12 /* Pipename */ 1817 #define PRN_PS 13 /* Text to PS */ 1818 #define PRN_WID 14 /* PS Width */ 1819 #define PRN_LEN 15 /* PS Length */ 1820 #define PRN_RAW 16 /* Non-PS */ 1821 #define PRN_CS 17 /* Character Set */ 1822 #define PRN_MAX 17 /* Number of switches defined */ 1823 1824 /* Printer types */ 1825 1826 #define PRT_DOS 0 /* DOS */ 1827 #define PRT_WIN 1 /* Windows Queue */ 1828 #define PRT_FIL 2 /* File */ 1829 #define PRT_PIP 3 /* Pipe */ 1830 #define PRT_NON 4 /* None */ 1831 1832 #define PRINTSWI 1833 #endif /* OS2 */ 1834 #endif /* NOICP */ 1835 1836 #ifndef NODIAL 1837 /* 1838 Symbols for modem types, moved here from ckudia.c, May 1997, because now 1839 they are also used in some other modules. The numbers MUST correspond to 1840 the ordering of entries within the modemp[] array. 1841 */ 1842 #ifdef MINIDIAL /* Minimum dialer support */ 1843 1844 #define n_DIRECT 0 /* Direct connection -- no modem */ 1845 #define n_CCITT 1 /* CCITT/ITU-T V.25bis */ 1846 #define n_HAYES 2 /* Hayes 2400 */ 1847 #define n_UNKNOWN 3 /* Unknown */ 1848 #define n_UDEF 4 /* User-Defined */ 1849 #define n_GENERIC 5 /* Generic High Speed */ 1850 #define n_ITUTV250 6 /* ITU-T V.250 */ 1851 #define MAX_MDM 6 /* Number of modem types */ 1852 1853 #else /* Full-blown dialer support */ 1854 1855 #define n_DIRECT 0 /* Direct connection -- no modem */ 1856 #define n_ATTDTDM 1 1857 #define n_ATTISN 2 1858 #define n_ATTMODEM 3 1859 #define n_CCITT 4 1860 #define n_CERMETEK 5 1861 #define n_DF03 6 1862 #define n_DF100 7 1863 #define n_DF200 8 1864 #define n_GDC 9 1865 #define n_HAYES 10 1866 #define n_PENRIL 11 1867 #define n_RACAL 12 1868 #define n_UNKNOWN 13 1869 #define n_VENTEL 14 1870 #define n_CONCORD 15 1871 #define n_ATTUPC 16 /* aka UNIX PC and ATT7300 */ 1872 #define n_ROLM 17 /* Rolm CBX DCM */ 1873 #define n_MICROCOM 18 /* Microcoms in SX command mode */ 1874 #define n_USR 19 /* Modern USRs */ 1875 #define n_TELEBIT 20 /* Telebits of all kinds */ 1876 #define n_DIGITEL 21 /* Digitel DT-22 (CCITT variant) */ 1877 #define n_H_1200 22 /* Hayes 1200 */ 1878 #define n_H_ULTRA 23 /* Hayes Ultra and maybe Optima */ 1879 #define n_H_ACCURA 24 /* Hayes Accura and maybe Optima */ 1880 #define n_PPI 25 /* Practical Peripherals */ 1881 #define n_DATAPORT 26 /* AT&T Dataport */ 1882 #define n_BOCA 27 /* Boca */ 1883 #define n_MOTOROLA 28 /* Motorola Fastalk or Lifestyle */ 1884 #define n_DIGICOMM 29 /* Digicomm Connection */ 1885 #define n_DYNALINK 30 /* Dynalink 1414VE */ 1886 #define n_INTEL 31 /* Intel 14400 Faxmodem */ 1887 #define n_UCOM_AT 32 /* Microcoms in AT mode */ 1888 #define n_MULTI 33 /* Multitech MT1432 */ 1889 #define n_SUPRA 34 /* SupraFAXmodem */ 1890 #define n_ZOLTRIX 35 /* Zoltrix */ 1891 #define n_ZOOM 36 /* Zoom */ 1892 #define n_ZYXEL 37 /* ZyXEL */ 1893 #define n_TAPI 38 /* TAPI Line modem - whatever it is */ 1894 #define n_TBNEW 39 /* Newer Telebit models */ 1895 #define n_MAXTECH 40 /* MaxTech XM288EA */ 1896 #define n_UDEF 41 /* User-Defined */ 1897 #define n_RWV32 42 /* Generic Rockwell V.32 */ 1898 #define n_RWV32B 43 /* Generic Rockwell V.32bis */ 1899 #define n_RWV34 44 /* Generic Rockwell V.34 */ 1900 #define n_MWAVE 45 /* IBM Mwave Adapter */ 1901 #define n_TELEPATH 46 /* Gateway Telepath */ 1902 #define n_MICROLINK 47 /* MicroLink modems */ 1903 #define n_CARDINAL 48 /* Cardinal modems */ 1904 #define n_GENERIC 49 /* Generic high-speed */ 1905 #define n_XJACK 50 /* Megahertz X-Jack */ 1906 #define n_SPIRITII 51 /* Quickcomm Spirit II */ 1907 #define n_MONTANA 52 /* Motorola Montana */ 1908 #define n_COMPAQ 53 /* Compaq Data+Fax Modem */ 1909 #define n_FUJITSU 54 /* Fujitsu Fax/Modem Adpater */ 1910 #define n_MHZATT 55 /* Megahertz AT&T V.34 */ 1911 #define n_SUPRASON 56 /* SupraSonic */ 1912 #define n_BESTDATA 57 /* Best Data */ 1913 #define n_ATT1900 58 /* AT&T STU III Model 1900 */ 1914 #define n_ATT1910 59 /* AT&T STU III Model 1910 */ 1915 #define n_KEEPINTOUCH 60 /* AT&T KeepinTouch */ 1916 #define n_USRX2 61 /* USR XJ-1560 X2 56K */ 1917 #define n_ROLMAT 62 /* Rolm with AT command set */ 1918 #define n_ATLAS 63 /* Atlas / Newcom ixfC 33.6 */ 1919 #define n_CODEX 64 /* Motorola Codex 326X Series */ 1920 #define n_MT5634ZPX 65 /* Multitech MT5634ZPX */ 1921 #define n_ULINKV250 66 /* Microlink ITU-T V.250 56K */ 1922 #define n_ITUTV250 67 /* Generic ITU-T V.250 */ 1923 #define n_RWV90 68 /* Generic Rockwell V.90 */ 1924 #define n_SUPRAX 69 /* Diamond Supra Express V.90 */ 1925 #define n_LUCENT 70 /* Lucent Venus chipset */ 1926 #define n_PCTEL 71 /* PCTel chipset */ 1927 #define n_CONEXANT 72 /* Conexant modem family */ 1928 #define n_ZOOMV34 73 /* Zoom */ 1929 #define n_ZOOMV90 74 /* Zoom */ 1930 #define n_ZOOMV92 75 /* ZOOM V.92 */ 1931 #define n_MOTSM56 76 /* Motorola SM56 chipset */ 1932 #define MAX_MDM 76 /* Number of modem types */ 1933 1934 #endif /* MINIDIAL */ 1935 #endif /* NODIAL */ 1936 1937 #ifndef NOICP 1938 /* SHOW command symbols */ 1939 1940 #define SHPAR 0 /* Parameters */ 1941 #define SHVER 1 /* Versions */ 1942 #define SHCOM 2 /* Communications */ 1943 #define SHPRO 3 /* Protocol */ 1944 #define SHFIL 4 /* File */ 1945 #define SHLNG 5 /* Language */ 1946 #define SHCOU 6 /* Count */ 1947 #define SHMAC 7 /* Macros */ 1948 #define SHKEY 8 /* Key */ 1949 #define SHSCR 9 /* Scripts */ 1950 #define SHSPD 10 /* Speed */ 1951 #define SHSTA 11 /* Status */ 1952 #define SHSER 12 /* Server */ 1953 #define SHXMI 13 /* Transmit */ 1954 #define SHATT 14 /* Attributes */ 1955 #define SHMOD 15 /* Modem */ 1956 #define SHDFLT 16 /* Default (as in VMS) */ 1957 #define SHVAR 17 /* Show global variables */ 1958 #define SHARG 18 /* Show macro arguments */ 1959 #define SHARR 19 /* Show arrays */ 1960 #define SHBUI 20 /* Show builtin variables */ 1961 #define SHFUN 21 /* Show functions */ 1962 #define SHPAD 22 /* Show (X.25) PAD */ 1963 #define SHTER 23 /* Show terminal settings */ 1964 #define SHESC 24 /* Show escape character */ 1965 #define SHDIA 25 /* Show DIAL parameters */ 1966 #define SHNET 26 /* Show network parameters */ 1967 #define SHLBL 27 /* Show VMS labeled file parameters */ 1968 #define SHSTK 28 /* Show stack, MAC debugging */ 1969 #define SHCSE 29 /* Show character sets */ 1970 #define SHFEA 30 /* Show features */ 1971 #define SHCTL 31 /* Show control-prefix table */ 1972 #define SHEXI 32 /* Show EXIT items */ 1973 #define SHPRT 33 /* Show printer */ 1974 #define SHCMD 34 /* Show command parameters */ 1975 #define SHKVB 35 /* Show \Kverbs */ 1976 #define SHMOU 36 /* Show Mouse (like Show Key) */ 1977 #define SHTAB 37 /* Show Tabs (OS/2) */ 1978 #define SHVSCRN 38 /* Show Virtual Screen (OS/2) */ 1979 #define SHALRM 39 /* ALARM */ 1980 #define SHSFL 40 /* SEND-LIST */ 1981 #define SHUDK 41 /* DEC VT UDKs (OS/2) */ 1982 #define SHDBL 42 /* DOUBLE/IGNORE characters */ 1983 #define SHEDIT 43 /* EDITOR */ 1984 #define SHBROWSE 44 /* BROWSER */ 1985 #define SHTAPI 45 /* TAPI */ 1986 #define SHTAPI_L 46 /* TAPI Location */ 1987 #define SHTAPI_M 47 /* TAPI Modem Properties */ 1988 #define SHTAPI_C 48 /* TAPI Comm Properties */ 1989 #define SHTEL 49 /* SHOW TELNET */ 1990 #define SHINP 50 /* SHOW INPUT */ 1991 #define SHTRIG 51 /* SHOW TRIGGER */ 1992 #define SHLOG 52 /* SHOW LOGS */ 1993 #define SHOUTP 53 /* SHOW OUTPUT */ 1994 #define SHOPAT 54 /* SHOW PATTERNS */ 1995 #define SHOSTR 55 /* SHOW STREAMING */ 1996 #define SHOAUTH 56 /* SHOW AUTHENTICATION */ 1997 #define SHOFTP 57 /* SHOW FTP */ 1998 #define SHTOPT 58 /* SHOW TELOPT */ 1999 #define SHXOPT 59 /* SHOW EXTENDED-OPTIONS */ 2000 #define SHCD 60 /* SHOW CD */ 2001 #define SHASSOC 61 /* SHOW ASSOCIATIONS */ 2002 #define SHCONNX 62 /* SHOW CONNECTION */ 2003 #define SHOPTS 63 /* SHOW OPTIONS */ 2004 #define SHOFLO 64 /* SHOW FLOW-CONTROL */ 2005 #define SHOXFER 65 /* SHOW TRANSFER */ 2006 #define SHTCP 66 /* SHOW TCP */ 2007 #define SHHISTORY 67 /* SHOW (command) HISTORY */ 2008 #define SHSEXP 68 /* SHOW SEXPRESSIONS */ 2009 #define SHOSSH 69 /* SHOW SSH */ 2010 #define SHOIKS 70 /* SHOW IKS */ 2011 #define SHOGUI 71 /* SHOW GUI (K95) */ 2012 #define SHOREN 72 /* SHOW RENAME */ 2013 #define SHOLOC 73 /* SHOW LOCALE */ 2014 #define SHOTMPDIR 74 /* SHOW TEMP-DIRECTORY */ 2015 2016 /* REMOTE command symbols */ 2017 2018 #define XZCPY 0 /* Copy */ 2019 #define XZCWD 1 /* Change Working Directory */ 2020 #define XZDEL 2 /* Delete */ 2021 #define XZDIR 3 /* Directory */ 2022 #define XZHLP 4 /* Help */ 2023 #define XZHOS 5 /* Host */ 2024 #define XZKER 6 /* Kermit */ 2025 #define XZLGI 7 /* Login */ 2026 #define XZLGO 8 /* Logout */ 2027 #define XZMAI 9 /* Mail <-- wrong, this should be top-level */ 2028 #define XZMOU 10 /* Mount */ 2029 #define XZMSG 11 /* Message */ 2030 #define XZPRI 12 /* Print */ 2031 #define XZREN 13 /* Rename */ 2032 #define XZSET 14 /* Set */ 2033 #define XZSPA 15 /* Space */ 2034 #define XZSUB 16 /* Submit */ 2035 #define XZTYP 17 /* Type */ 2036 #define XZWHO 18 /* Who */ 2037 #define XZPWD 19 /* Print Working Directory */ 2038 #define XZQUE 20 /* Query */ 2039 #define XZASG 21 /* Assign */ 2040 #define XZMKD 22 /* mkdir */ 2041 #define XZRMD 23 /* rmdir */ 2042 #define XZXIT 24 /* Exit */ 2043 #define XZCDU 25 /* CDUP */ 2044 2045 /* SET INPUT command parameters */ 2046 2047 #define IN_DEF 0 /* Default timeout */ 2048 #define IN_TIM 1 /* Timeout action */ 2049 #define IN_CAS 2 /* Case (matching) */ 2050 #define IN_ECH 3 /* Echo */ 2051 #define IN_SIL 4 /* Silence */ 2052 #define IN_BUF 5 /* Buffer size */ 2053 #define IN_PAC 6 /* Input Pacing (debug) */ 2054 #define IN_TRM 7 /* Input Terminal Display */ 2055 #define IN_ADL 8 /* Input autodownload */ 2056 #define IN_PAT 9 /* Pattern to match */ 2057 #define IN_ASG 10 /* Assign matching text to variable */ 2058 #define IN_CAN 11 /* Keyboard cancellation of INPUT */ 2059 #define IN_SCA 12 /* Timeout scaling */ 2060 2061 /* ENABLE/DISABLE command parameters */ 2062 2063 #define EN_ALL 0 /* ALL */ 2064 #define EN_CWD 1 /* CD/CWD */ 2065 #define EN_DIR 2 /* DIRECTORY */ 2066 #define EN_FIN 3 /* FINISH */ 2067 #define EN_GET 4 /* GET */ 2068 #define EN_HOS 5 /* HOST command */ 2069 #define EN_KER 6 /* KERMIT command */ 2070 #define EN_LOG 7 /* LOGIN */ 2071 #define EN_SEN 8 /* SEND */ 2072 #define EN_SET 9 /* SET */ 2073 #define EN_SPA 10 /* SPACE */ 2074 #define EN_TYP 11 /* TYPE */ 2075 #define EN_WHO 12 /* WHO, finger */ 2076 #define EN_DEL 13 /* Delete */ 2077 #define EN_BYE 14 /* BYE (as opposed to FINISH) */ 2078 #define EN_QUE 15 /* QUERY */ 2079 #define EN_ASG 16 /* ASSIGN */ 2080 #define EN_CPY 17 /* COPY */ 2081 #define EN_REN 18 /* RENAME */ 2082 #define EN_RET 19 /* RETRIEVE */ 2083 #define EN_MAI 20 /* MAIL */ 2084 #define EN_PRI 21 /* PRINT */ 2085 #define EN_MKD 22 /* MKDIR */ 2086 #define EN_RMD 23 /* RMDIR */ 2087 #define EN_XIT 24 /* EXIT */ 2088 #define EN_ENA 25 /* ENABLE */ 2089 #endif /* NOICP */ 2090 2091 #ifndef NOICP 2092 /* CLEAR command symbols */ 2093 #define CLR_DEV 1 /* Clear Device Buffers */ 2094 #define CLR_INP 2 /* Clear Input Buffers */ 2095 #define CLR_BTH CLR_DEV|CLR_INP /* Clear Device and Input */ 2096 #define CLR_SCL 4 /* Clear Scrollback buffer */ 2097 #define CLR_CMD 8 /* Clear Command Screen */ 2098 #define CLR_TRM 16 /* Clear Terminal Screen */ 2099 #define CLR_DIA 32 /* Clear Dial Status */ 2100 #define CLR_SFL 64 /* Clear Send-File-List */ 2101 #define CLR_APC 128 /* Clear APC */ 2102 #define CLR_ALR 256 /* Clear Alarm */ 2103 #define CLR_TXT 512 /* Clear text-patterns */ 2104 #define CLR_BIN 1024 /* Clear binary-patterns */ 2105 #define CLR_SCR 2048 /* Clear screen */ 2106 #define CLR_KBD 4096 /* Clear keyboard buffer */ 2107 #endif /* NOICP */ 2108 2109 /* Symbols for logs */ 2110 2111 #define LOGD 0 /* Debugging */ 2112 #define LOGP 1 /* Packets */ 2113 #define LOGS 2 /* Session */ 2114 #define LOGT 3 /* Transaction */ 2115 #define LOGX 4 /* Screen */ 2116 #define LOGR 5 /* The "open read" file */ 2117 #define LOGW 6 /* The "open write/append" file */ 2118 #define LOGE 7 /* Error (e.g. stderr) */ 2119 #define LOGM 8 /* The dialing log */ 2120 2121 #ifndef NOSPL 2122 /* Symbols for builtin variables */ 2123 2124 #define VN_ARGC 0 /* ARGC */ 2125 #define VN_COUN 1 /* COUNT */ 2126 #define VN_DATE 2 /* DATE */ 2127 #define VN_DIRE 3 /* DIRECTORY */ 2128 #define VN_ERRO 4 /* ERRORLEVEL */ 2129 #define VN_TIME 5 /* TIME */ 2130 #define VN_VERS 6 /* VERSION */ 2131 #define VN_IBUF 7 /* INPUT buffer */ 2132 #define VN_SUCC 8 /* SUCCESS flag */ 2133 #define VN_LINE 9 /* LINE */ 2134 #define VN_ARGS 10 /* Program command-line arg count */ 2135 #define VN_SYST 11 /* System type */ 2136 #define VN_SYSV 12 /* System version */ 2137 #define VN_RET 13 /* RETURN value */ 2138 #define VN_FILE 14 /* Most recent filespec */ 2139 #define VN_NDAT 15 /* Numeric date yyyy/mm/dd */ 2140 #define VN_HOME 16 /* Home directory */ 2141 #define VN_SPEE 17 /* Transmission speed */ 2142 #define VN_HOST 18 /* Host name */ 2143 #define VN_TTYF 19 /* TTY file descriptor (UNIX only) */ 2144 #define VN_PROG 20 /* Program name */ 2145 #define VN_NTIM 21 /* NTIME */ 2146 #define VN_FFC 22 /* Characters in last file xferred */ 2147 #define VN_TFC 23 /* Chars in last file group xferred */ 2148 #define VN_CPU 24 /* CPU type */ 2149 #define VN_CMDL 25 /* Command level */ 2150 #define VN_DAY 26 /* Day of week, string */ 2151 #define VN_NDAY 27 /* Day of week, numeric */ 2152 #define VN_LCL 28 /* Local (vs) remote mode */ 2153 #define VN_CMDS 29 /* Command source */ 2154 #define VN_CMDF 30 /* Command file name */ 2155 #define VN_MAC 31 /* Macro name */ 2156 #define VN_EXIT 32 /* Exit status */ 2157 #define VN_ICHR 33 /* INPUT character */ 2158 #define VN_ICNT 34 /* INPUT count */ 2159 #define VN_PRTY 35 /* Current parity */ 2160 #define VN_DIAL 36 /* DIAL status */ 2161 #define VN_KEYB 37 /* Keyboard type */ 2162 #define VN_CPS 38 /* Chars per second, last transfer */ 2163 #define VN_RPL 39 /* Receive packet length */ 2164 #define VN_SPL 40 /* Send packet length */ 2165 #define VN_MODE 41 /* Transfer mode (text, binary) */ 2166 #define VN_REXX 42 /* Rexx return value */ 2167 #define VN_NEWL 43 /* Newline character or sequence */ 2168 #define VN_COLS 44 /* Columns on console screen */ 2169 #define VN_ROWS 45 /* Rows on console screen */ 2170 #define VN_TTYP 46 /* Terminal type */ 2171 #define VN_MINP 47 /* MINPUT result */ 2172 #define VN_CONN 48 /* Connection type */ 2173 #define VN_SYSI 49 /* System ID */ 2174 #define VN_TZ 50 /* Timezone */ 2175 #define VN_SPA 51 /* Space */ 2176 #define VN_QUE 52 /* Query */ 2177 #define VN_STAR 53 /* Startup directory */ 2178 #define VN_CSET 54 /* Local character set */ 2179 #define VN_MDM 55 /* Modem type */ 2180 #define VN_EVAL 56 /* Most recent EVALUATE result */ 2181 2182 #define VN_D_CC 57 /* DIAL COUNTRY-CODE */ 2183 #define VN_D_AC 58 /* DIAL AREA-CODE */ 2184 #define VN_D_IP 59 /* DIAL INTERNATIONAL-PREFIX */ 2185 #define VN_D_LP 60 /* DIAL LD-PREFIX */ 2186 2187 #define VN_UID 61 2188 #define VN_PWD 62 2189 #define VN_PRM 63 2190 2191 #define VN_PROTO 64 /* Protocol */ 2192 #define VN_DLDIR 65 /* Download directory */ 2193 2194 #define VN_M_AAA 66 /* First MODEM one */ 2195 #define VN_M_INI 66 /* Modem init string */ 2196 #define VN_M_DCM 67 /* Modem dial command */ 2197 #define VN_M_DCO 68 /* Modem data compression on */ 2198 #define VN_M_DCX 69 /* Modem data compression off */ 2199 #define VN_M_ECO 70 /* Modem error correction on */ 2200 #define VN_M_ECX 71 /* Modem error correction off */ 2201 #define VN_M_AAO 72 /* Modem autoanswer on */ 2202 #define VN_M_AAX 73 /* Modem autoanswer off */ 2203 #define VN_M_HUP 74 /* Modem hangup command */ 2204 #define VN_M_HWF 75 /* Modem hardware flow command */ 2205 #define VN_M_SWF 76 /* Modem software flow command */ 2206 #define VN_M_NFC 77 /* Modem no flow-control command */ 2207 #define VN_M_PDM 78 /* Modem pulse dialing mode */ 2208 #define VN_M_TDM 79 /* Modem tone dialing mode */ 2209 #define VN_M_ZZZ 79 /* Last MODEM one */ 2210 2211 #define VN_SELCT 80 /* Selected Text from Mark Mode */ 2212 #define VN_TEMP 81 /* Temporary directory */ 2213 #define VN_ISTAT 82 /* INPUT command status */ 2214 #define VN_INI 83 /* INI (kermrc) directory */ 2215 #define VN_EXEDIR 84 /* EXE directory */ 2216 #define VN_ERRNO 85 /* Value of errno */ 2217 #define VN_ERSTR 86 /* Corresponding error message */ 2218 #define VN_TFLN 87 /* TAKE file line number */ 2219 #define VN_XVNUM 88 /* Product-specific version number */ 2220 #define VN_RPSIZ 89 /* Receive packet length */ 2221 #define VN_WINDO 90 /* Window size */ 2222 #define VN_MDMSG 91 /* Modem message */ 2223 #define VN_DNUM 92 /* Dial number */ 2224 #define VN_APC 93 /* APC active */ 2225 #define VN_IPADDR 94 /* My IP address */ 2226 #define VN_CRC16 95 /* CRC-16 of most recent file group */ 2227 #define VN_TRMK 96 /* Macro executed from Terminal Mode */ 2228 #define VN_PID 97 /* Process ID */ 2229 #define VN_FNAM 98 /* Name of file being transferred */ 2230 #define VN_FNUM 99 /* Number of file being transferred */ 2231 #define VN_PEXIT 100 /* Process exit status */ 2232 #define VN_P_CTL 101 /* Control Prefix */ 2233 #define VN_P_8BIT 102 /* 8-bit prefix */ 2234 #define VN_P_RPT 103 /* Repeat count prefix */ 2235 #define VN_D_LCP 104 /* DIAL LOCAL-PREFIX */ 2236 #define VN_URL 105 /* Last URL selected */ 2237 #ifdef COMMENT 2238 /* Not used in Open Source version but should not be recycled */ 2239 #define VN_REGN 106 /* Registration Name */ 2240 #define VN_REGO 107 /* Registration Organization */ 2241 #define VN_REGS 108 /* Registration Serial number */ 2242 #endif /* COMMENT */ 2243 #define VN_XPROG 109 /* xprogram (like xversion) */ 2244 #define VN_EDITOR 110 /* Editor */ 2245 #define VN_EDOPT 111 /* Editor options */ 2246 #define VN_EDFILE 112 /* Editor file */ 2247 #define VN_BROWSR 113 /* Browser */ 2248 #define VN_BROPT 114 /* Browser options */ 2249 #define VN_HERALD 115 /* Program herald */ 2250 #define VN_TEST 116 /* Program test level or "0" */ 2251 #define VN_XFSTAT 117 /* File-Transfer status */ 2252 #define VN_XFMSG 119 /* File-Transfer message */ 2253 #define VN_SNDL 120 /* Send-list status */ 2254 #define VN_TRIG 121 /* Trigger value */ 2255 #define VN_MOU_X 122 /* OS/2 Mouse Cursor X */ 2256 #define VN_MOU_Y 123 /* OS/2 Mouse Cursor Y */ 2257 #define VN_PRINT 124 /* Printer */ 2258 #define VN_ESC 125 /* Escape character */ 2259 #define VN_INTIME 126 /* INPUT elapsed time */ 2260 #define VN_K4RLM 127 /* Kerberos 4 Realm */ 2261 #define VN_K5RLM 128 /* Kerberos 5 Realm */ 2262 #define VN_K4PRN 129 /* Kerberos 4 Principal */ 2263 #define VN_K5PRN 130 /* Kerberos 5 Principal */ 2264 #define VN_K4CC 131 /* Kerberos 4 Credentials Cache */ 2265 #define VN_K5CC 132 /* Kerberos 5 Credentials Cache */ 2266 #define VN_OSNAM 133 /* OS name */ 2267 #define VN_OSVER 134 /* OS version */ 2268 #define VN_OSREL 135 /* OS release */ 2269 #define VN_NAME 136 /* Name I was called by */ 2270 #define VN_MODL 137 /* CPU model */ 2271 #define VN_X25LA 138 /* X.25 local address */ 2272 #define VN_X25RA 139 /* X.25 remote address */ 2273 #define VN_K4SRV 140 /* Kerberos 4 Service Name */ 2274 #define VN_K5SRV 141 /* Kerberos 5 Service Name */ 2275 #define VN_PDSFX 142 /* PDIAL suffix */ 2276 #define VN_DTYPE 143 /* DIAL type */ 2277 #define VN_LCKPID 144 /* Lockfile PID (UNIX) */ 2278 #define VN_BLK 145 /* Block check */ 2279 #define VN_TFTIM 146 /* File transfer elapsed time */ 2280 #define VN_D_PXX 147 /* DIAL PBX-EXCHANGE */ 2281 #define VN_HWPAR 148 /* Hardware Parity */ 2282 #define VN_SERIAL 149 /* SET SERIAL value */ 2283 #define VN_LCKDIR 150 /* Lockfile directory (UNIX) */ 2284 2285 #define VN_K4ENO 151 /* Kerberos 4 Last Errno */ 2286 #define VN_K4EMSG 152 /* Kerberos 4 Last Err Msg */ 2287 #define VN_K5ENO 153 /* Kerberos 5 Last Errno */ 2288 #define VN_K5EMSG 154 /* Kerberos 5 Last Err Msg */ 2289 2290 #define VN_INTMO 155 /* Input timeout */ 2291 #define VN_AUTHS 156 /* Authentication State */ 2292 2293 #define VN_DM_LP 157 /* Dial Modifier: Long Pause */ 2294 #define VN_DM_SP 158 /* Dial Modifier: Short Pause */ 2295 #define VN_DM_PD 159 /* Dial Modifier: Pulse Dial */ 2296 #define VN_DM_TD 160 /* Dial Modifier: Tone Dial */ 2297 #define VN_DM_WA 161 /* Dial Modifier: Wait for Answer */ 2298 #define VN_DM_WD 162 /* Dial Modifier: Wait for Dialtone */ 2299 #define VN_DM_RC 163 /* Dial Modifier: Return to Command */ 2300 2301 /* (more below...) */ 2302 2303 #define VN_TY_LN 164 /* TYPE command line number */ 2304 #define VN_TY_LC 165 /* TYPE command line count */ 2305 #define VN_TY_LM 166 /* TYPE command match count */ 2306 2307 #define VN_MACLVL 167 /* \v(maclevel) */ 2308 2309 #define VN_XF_BC 168 /* Transfer blockcheck errors */ 2310 #define VN_XF_TM 169 /* Transfer timeouts */ 2311 #define VN_XF_RX 170 /* Transfer retransmissions */ 2312 2313 #define VN_M_NAM 171 /* Modem full name */ 2314 #define VN_MS_CD 172 /* Modem signal CD */ 2315 #define VN_MS_CTS 173 /* Modem signal CTS */ 2316 #define VN_MS_DSR 174 /* Modem signal DSR */ 2317 #define VN_MS_DTR 175 /* Modem signal DTR */ 2318 #define VN_MS_RI 176 /* Modem signal RI */ 2319 #define VN_MS_RTS 177 /* Modem signal RTS */ 2320 2321 #define VN_MATCH 178 /* Most recent pattern match */ 2322 #define VN_SLMSG 179 /* SET LINE (error) message */ 2323 #define VN_TXTDIR 180 /* Kermit text-file directory */ 2324 #define VN_MA_PI 181 /* Math constant Pi */ 2325 #define VN_MA_E 182 /* Math constant e */ 2326 #define VN_MA_PR 183 /* Math precision (digits) */ 2327 #define VN_CMDBL 184 /* Command buffer length */ 2328 2329 #define VN_AUTHT 185 /* Authentication Type */ 2330 2331 #ifdef CKCHANNELIO 2332 #define VN_FERR 186 /* FILE error */ 2333 #define VN_FMAX 187 /* FILE max */ 2334 #define VN_FCOU 188 /* Result of last FILE COUNT */ 2335 #endif /* CKCHANNELIO */ 2336 2337 #define VN_DRTR 189 /* DIAL retry counter */ 2338 #define VN_CXTIME 190 /* Elapsed time in session */ 2339 #define VN_BYTE 191 /* Byte order */ 2340 #define VN_AUTHN 192 /* Authentication Name */ 2341 #define VN_KBCHAR 193 /* kbchar */ 2342 #define VN_TTYNAM 194 /* Name of controlling terminal */ 2343 2344 #define VN_X509_S 195 /* X.509 Certificate Subject */ 2345 #define VN_X509_I 196 /* X.509 Certificate Issuer */ 2346 2347 #define VN_PROMPT 197 /* C-Kermit's prompt */ 2348 #define VN_BUILD 198 /* Build ID string */ 2349 2350 #define VN_SEXP 199 /* Last S-Expression */ 2351 #define VN_VSEXP 200 /* Value of last S-Expression */ 2352 #define VN_LSEXP 201 /* SEXP depth */ 2353 2354 #define VN_FTIME 202 /* Time as floating-poing number */ 2355 2356 #define VN_FTP_C 203 /* FTP Reply Code */ 2357 #define VN_FTP_M 204 /* FTP Reply Message */ 2358 #define VN_FTP_S 205 /* FTP Server type */ 2359 #define VN_FTP_H 206 /* FTP Host */ 2360 #define VN_FTP_X 207 /* FTP Connected */ 2361 #define VN_FTP_L 208 /* FTP Logged in */ 2362 #define VN_FTP_G 209 /* FTP GET-PUT-REMOTE setting */ 2363 2364 #define VN_SECURE 210 /* Encrypted connection 0 or 1 */ 2365 2366 #define VN_DM_HF 211 /* Dial Modifier: Hook Flash */ 2367 #define VN_DM_WB 212 /* Dial Modifier: Wait for Bong */ 2368 #define VN_CX_STA 213 /* CX_STATUS */ 2369 2370 #define VN_FTP_B 214 /* FTP CPL */ 2371 #define VN_FTP_D 215 /* FTP DPL */ 2372 #define VN_FTP_Z 216 /* FTP SECURITY */ 2373 #define VN_HTTP_C 217 /* HTTP Code */ 2374 #define VN_HTTP_N 218 /* HTTP Connected */ 2375 #define VN_HTTP_H 219 /* HTTP Host */ 2376 #define VN_HTTP_M 220 /* HTTP Message */ 2377 #define VN_HTTP_S 221 /* HTTP Security */ 2378 2379 #define VN_NOW 222 /* Timestamp yyyymmdd hh:mm:ss */ 2380 #define VN_HOUR 223 /* Current hour of the day 0-23 */ 2381 2382 #define VN_CI_DA 224 /* Caller ID date */ 2383 #define VN_CI_TI 225 /* Caller ID time */ 2384 #define VN_CI_NA 226 /* Caller ID name */ 2385 #define VN_CI_NU 227 /* Caller ID number */ 2386 #define VN_CI_ME 228 /* Caller ID message */ 2387 #define VN_PERSONAL 229 /* Personal Directory on Windows */ 2388 #define VN_APPDATA 230 /* User AppData directory */ 2389 #define VN_COMMON 231 /* Common AppData directory */ 2390 #define VN_DESKTOP 232 /* User Desktop directory */ 2391 #define VN_TNC_SIG 233 /* RFC 2717 Signature */ 2392 2393 #ifdef KUI 2394 #define VN_GUI_XP 234 /* GUI Window X position */ 2395 #define VN_GUI_YP 235 /* GUI Window Y position */ 2396 #define VN_GUI_XR 236 /* GUI Window X resolution */ 2397 #define VN_GUI_YR 237 /* GUI Window Y resolution */ 2398 #define VN_GUI_RUN 238 /* GUI Window Run mode */ 2399 #define VN_GUI_FNM 239 /* GUI Window Font Name */ 2400 #define VN_GUI_FSZ 240 /* GUI Window Font Size */ 2401 #endif /* KUI */ 2402 2403 #define VN_LOG_PKT 241 /* Packet Log Filename */ 2404 #define VN_LOG_TRA 242 /* Transaction Log Filename */ 2405 #define VN_LOG_SES 243 /* Session Log Filename */ 2406 #define VN_LOG_DEB 244 /* Debug Log Filename */ 2407 #define VN_LOG_CON 245 /* Connection Log Filename */ 2408 2409 #define VN_ISCALE 246 /* INPUT scale factor */ 2410 #define VN_BITS 247 /* Bits of this build (16, 32, 64) */ 2411 #define VN_LASTFIL 248 /* Last input filespec */ 2412 #define VN_LASTKWV 249 /* Last \fkeywordvalue() keyword */ 2413 #define VN_DMSG 250 /* Msg corresponding to dialstatus */ 2414 #define VN_HOSTIP 251 /* IP address of remote host */ 2415 #define VN_INPMSG 252 /* Msg corresponding to instatus */ 2416 #define VN_VAREVAL 253 /* SET VARIABLE-EVALUATION setting */ 2417 #define VN_PREVCMD 254 /* Previous command */ 2418 #define VN_YEAR 255 /* This year */ 2419 #define VN_MONTH 256 /* This month (name) */ 2420 #define VN_NMONTH 257 /* This month (numeric) */ 2421 #endif /* NOSPL */ 2422 2423 /* INPUT status values */ 2424 2425 #define INP_OK 0 /* Succeeded */ 2426 #define INP_TO 1 /* Timed out */ 2427 #define INP_UI 2 /* User interrupted */ 2428 #define INP_IE 3 /* Internal error */ 2429 #define INP_IO 4 /* I/O error or connection lost */ 2430 #define INP_IKS 5 /* Kermit Server Active */ 2431 #define INP_BF 6 /* Buffer full */ 2432 2433 /* INPUT switch values */ 2434 2435 #define INPSW_NOM 1 /* /NOMATCH */ 2436 #define INPSW_CLR 2 /* /CLEAR */ 2437 #define INPSW_NOW 4 /* /NOWRAP */ 2438 #define INPSW_COU 8 /* /COUNT */ 2439 2440 #ifndef NOSPL 2441 /* Symbols for builtin functions */ 2442 2443 #define FNARGS 6 /* Maximum number of function args */ 2444 2445 #define FN_IND 0 /* Index (of string 1 in string 2) */ 2446 #define FN_LEN 1 /* Length (of string) */ 2447 #define FN_LIT 2 /* Literal (don't expand the string) */ 2448 #define FN_LOW 3 /* Lower (convert to lowercase) */ 2449 #define FN_MAX 4 /* Max (maximum) */ 2450 #define FN_MIN 5 /* Min (minimum) */ 2451 #define FN_MOD 6 /* Mod (modulus) */ 2452 #define FN_EVA 7 /* Eval (evaluate arith expression) */ 2453 #define FN_SUB 8 /* Substr (substring) */ 2454 #define FN_UPP 9 /* Upper (convert to uppercase) */ 2455 #define FN_REV 10 /* Reverse (a string) */ 2456 #define FN_REP 11 /* Repeat (a string) */ 2457 #define FN_EXE 12 /* Execute (a macro) */ 2458 #define FN_VAL 13 /* Return value (of a macro) */ 2459 #define FN_LPA 14 /* LPAD (left pad) */ 2460 #define FN_RPA 15 /* RPAD (right pad) */ 2461 #define FN_DEF 16 /* Definition of a macro, unexpanded */ 2462 #define FN_CON 17 /* Contents of a variable, ditto */ 2463 #define FN_FIL 18 /* File list */ 2464 #define FN_FC 19 /* File count */ 2465 #define FN_CHR 20 /* Character (like BASIC CHR$()) */ 2466 #define FN_RIG 21 /* Right (like BASIC RIGHT$()) */ 2467 #define FN_COD 22 /* Code value of character */ 2468 #define FN_RPL 23 /* Replace */ 2469 #define FN_FD 24 /* File date */ 2470 #define FN_FS 25 /* File size */ 2471 #define FN_RIX 26 /* Rindex (index from right) */ 2472 #define FN_VER 27 /* Verify */ 2473 #define FN_IPA 28 /* Find and return IP address */ 2474 #define FN_CRY 39 /* ... */ 2475 #define FN_OOX 40 /* ... */ 2476 #define FN_HEX 41 /* Hexify */ 2477 #define FN_UNH 42 /* Unhexify */ 2478 #define FN_BRK 43 /* Break */ 2479 #define FN_SPN 44 /* Span */ 2480 #define FN_TRM 45 /* Trim */ 2481 #define FN_LTR 46 /* Left-Trim */ 2482 #define FN_CAP 47 /* Capitalize */ 2483 #define FN_TOD 48 /* Time-of-day-to-secs-since-midnite */ 2484 #define FN_SEC 49 /* Secs-since-midnite-to-time-of-day */ 2485 #define FN_FFN 50 /* Full file name */ 2486 #define FN_CHK 51 /* Checksum of text */ 2487 #define FN_CRC 52 /* CRC-16 of text */ 2488 #define FN_BSN 53 /* Basename of file */ 2489 #define FN_CMD 54 /* Output of a command (cooked) */ 2490 #define FN_RAW 55 /* Output of a command (raw) */ 2491 #define FN_STX 56 /* Strip from right */ 2492 #define FN_STL 57 /* Strip from left */ 2493 #define FN_STN 58 /* Strip n chars */ 2494 #define FN_SCRN_CX 59 /* Screen Cursor X Pos */ 2495 #define FN_SCRN_CY 60 /* Screen Cursor Y Pos */ 2496 #define FN_SCRN_STR 61 /* Screen String */ 2497 #define FN_2HEX 62 /* Number (not string) to hex */ 2498 #define FN_2OCT 63 /* Number (not string) to octal */ 2499 #define FN_RFIL 64 /* Recursive file list */ 2500 #define FN_DIR 65 /* Directory list */ 2501 #define FN_RDIR 66 /* Recursive directory list */ 2502 #define FN_DNAM 67 /* Directory part of filename */ 2503 #define FN_RAND 68 /* Random number */ 2504 #define FN_WORD 69 /* Word extraction */ 2505 #define FN_SPLIT 70 /* Split string into words */ 2506 #define FN_KRB_TK 71 /* Kerberos tickets */ 2507 #define FN_KRB_NX 72 /* Kerberos next ticket */ 2508 #define FN_KRB_IV 73 /* Kerberos ticket is valid */ 2509 #define FN_KRB_TT 74 /* Kerberos ticket time */ 2510 #define FN_ERRMSG 75 /* Error code to message */ 2511 2512 #ifndef UNIX 2513 #ifndef VMS 2514 #undef FN_ERRMSG 2515 #endif /* VMS */ 2516 #endif /* UNIX */ 2517 2518 #define FN_DIM 76 /* Dimension of array */ 2519 #define FN_DTIM 77 /* Convert to standard date/time */ 2520 #define FN_JDATE 78 /* Regular date to day of year */ 2521 #define FN_PNCVT 79 /* Convert phone number for dialing */ 2522 #define FN_DATEJ 80 /* Day of year to date */ 2523 #define FN_MJD 81 /* Date to modified Julian date */ 2524 #define FN_MJD2 82 /* Modified Julian date to date */ 2525 #define FN_DAY 83 /* Day of week of given date */ 2526 #define FN_NDAY 84 /* Numeric day of week of given date */ 2527 #define FN_TIME 85 /* Convert to hh:mm:ss */ 2528 #define FN_NTIM 86 /* Convert to seconds since midnite */ 2529 #define FN_N2TIM 87 /* Sec since midnite to hh:mm:ss */ 2530 #define FN_PERM 88 /* Permissions of file */ 2531 #define FN_KRB_FG 89 /* Kerberos Ticket Flags */ 2532 #define FN_SEARCH 90 /* Search for pattern in string */ 2533 #define FN_RSEARCH 91 /* Ditto, but right to left */ 2534 #define FN_XLATE 92 /* Translate string charset */ 2535 #define FN_ALOOK 93 /* Array lookup */ 2536 #define FN_TLOOK 94 /* Table lookup */ 2537 #define FN_TOB64 95 /* Encode into Base64 */ 2538 #define FN_FMB64 96 /* Decode from Base64 */ 2539 2540 #define FN_ABS 97 /* Absolute value */ 2541 2542 #ifdef CKFLOAT 2543 #define FN_FPADD 98 /* Floating-point add */ 2544 #define FN_FPSUB 99 /* Floating-point substract */ 2545 #define FN_FPMUL 100 /* Floating-point multiply */ 2546 #define FN_FPDIV 101 /* Floating-point divide */ 2547 #define FN_FPEXP 102 /* Floating-point e to the x */ 2548 #define FN_FPLN 103 /* Floating-point natural log */ 2549 #define FN_FPLOG 104 /* Floating-point base-10 log */ 2550 #define FN_FPPOW 105 /* Floating-point raise to power */ 2551 #define FN_FPSQR 106 /* Floating-point square root */ 2552 #define FN_FPABS 107 /* Floating-point absolute value */ 2553 #define FN_FPMOD 108 /* Floating-point modulus */ 2554 #define FN_FPMAX 109 /* Floating-point maximum */ 2555 #define FN_FPMIN 110 /* Floating-point minimum*/ 2556 #define FN_FPINT 111 /* Floating-point to integer */ 2557 #define FN_FPROU 112 /* Floating-point round */ 2558 #define FN_FPSIN 113 /* FP sine */ 2559 #define FN_FPCOS 114 /* FP cosine */ 2560 #define FN_FPTAN 115 /* FP tangent */ 2561 #endif /* CKFLOAT */ 2562 2563 #ifdef CKCHANNELIO 2564 #define FN_FSTAT 116 /* File status */ 2565 #define FN_FPOS 117 /* File position */ 2566 #define FN_FEOF 118 /* File eof */ 2567 #define FN_FILNO 119 /* File number / handle */ 2568 #define FN_FGCHAR 120 /* File getchar */ 2569 #define FN_FGLINE 121 /* File getline */ 2570 #define FN_FGBLK 122 /* File getblock */ 2571 #define FN_FPCHAR 123 /* File putchar */ 2572 #define FN_FPLINE 124 /* File putline */ 2573 #define FN_FPBLK 125 /* File putblock */ 2574 #define FN_NLINE 126 /* File get current line number */ 2575 #define FN_FERMSG 127 /* File error message */ 2576 #endif /* CKCHANNELIO */ 2577 2578 #define FN_LEF 128 /* Left (= substr starting on left) */ 2579 #define FN_AADUMP 129 /* Associative Array Dump */ 2580 #define FN_STB 130 /* \fstripb() */ 2581 #define FN_PATTERN 131 /* \fpattern() */ 2582 #define FN_HEX2N 132 /* \fhexton() */ 2583 #define FN_OCT2N 133 /* \foctton() */ 2584 #define FN_HEX2IP 134 /* \fhextoip() */ 2585 #define FN_IP2HEX 135 /* \fiptohex() */ 2586 #define FN_RADIX 136 /* \fradix() */ 2587 #define FN_JOIN 137 /* \fjoin() */ 2588 #define FN_SUBST 138 /* \fsubstitute() */ 2589 #define FN_SEXP 139 /* \fsexpression() */ 2590 #define FN_CMDSTK 140 /* \fcmdstack() */ 2591 #define FN_TOGMT 141 /* \ftogmt() */ 2592 #define FN_CMPDATE 142 /* \fcmpdates() */ 2593 #define FN_DIFDATE 143 /* \fdiffdates() */ 2594 #ifdef TCPSOCKET 2595 #define FN_HSTADD 144 /* \faddr2name() */ 2596 #define FN_HSTNAM 145 /* \fname2addr() */ 2597 #endif /* TCPSOCKET */ 2598 #define FN_DELSEC 146 /* \fdelta2sec() */ 2599 #define FN_PC_DU 147 /* Path conversion DOS to Unix */ 2600 #define FN_PC_VU 148 /* Path conversion VMS to Unix */ 2601 #define FN_PC_UD 149 /* Path conversion Unix to DOS */ 2602 #define FN_PC_UV 150 /* Path conversion Unix to VMS */ 2603 #define FN_KWVAL 151 /* \fkeywordvalue() */ 2604 #define FN_SLEEP 152 /* \fsleep() */ 2605 #define FN_MSLEEP 153 /* \fmsleep() */ 2606 #define FN_LNAME 154 /* \fLongPathName() (Windows) */ 2607 #define FN_SNAME 155 /* \fShortPathName() (Windows) */ 2608 #define FN_UNTAB 156 /* \funtabify() */ 2609 #define FN_LOPX 157 /* \flopx() */ 2610 #define FN_EMAIL 158 /* \femailaddress() */ 2611 #define FN_PICTURE 159 /* \fpictureinfo() */ 2612 #define FN_PID 160 /* \fpidinfo() */ 2613 #define FN_COUNT 161 /* \fcount() */ 2614 #define FN_FUNC 162 /* \ffunction() */ 2615 #define FN_RECURSE 163 /* \frecurse() */ 2616 #define FN_SQUEEZE 164 /* \fsqueeze() */ 2617 #define FN_UNPCT 165 /* \fdecodehex() */ 2618 #define FN_STRINGT 166 /* \fstringtype() */ 2619 #define FN_STRCMP 167 /* \fstrcmp() */ 2620 #define FN_FILEINF 168 /* File information */ 2621 #define FN_FILECMP 169 /* File compare */ 2622 #define FN_DAYNAME 170 /* Day name according to locale */ 2623 #define FN_MONNAME 171 /* Month name according to locale */ 2624 2625 #endif /* NOSPL */ 2626 2627 /* Time Units */ 2628 2629 #define TU_DAYS 0 2630 #define TU_WEEKS 1 2631 #define TU_MONTHS 2 2632 #define TU_YEARS 3 2633 2634 #ifdef CK_CURSES 2635 /* Screen line numbers for fullscreen file-transfer display */ 2636 2637 #define CW_BAN 0 /* Curses Window Banner */ 2638 #define CW_DIR 2 /* Current directory */ 2639 #define CW_LIN 3 /* Communication device */ 2640 #define CW_SPD 4 /* Communication speed */ 2641 #define CW_PAR 5 /* Parity */ 2642 #define CW_TMO 6 2643 #define CW_NAM 7 /* Filename */ 2644 #define CW_TYP 8 /* File type */ 2645 #define CW_SIZ 9 /* File size */ 2646 #define CW_PCD 10 /* Percent done */ 2647 2648 #ifndef CK_PCT_BAR 2649 #define CW_TR 11 /* Time remaining */ 2650 #define CW_CP 12 /* Characters per second */ 2651 #define CW_WS 13 /* Window slots */ 2652 #define CW_PT 14 /* Packet type */ 2653 #define CW_PC 15 /* Packet count */ 2654 #define CW_PL 16 /* Packet length */ 2655 #define CW_PR 17 /* Packet retry */ 2656 #ifdef COMMENT 2657 #define CW_PB 17 /* Packet block check */ 2658 #endif /* COMMENT */ 2659 #else /* CK_PCT_BAR */ 2660 #define CW_BAR 11 /* Percent Bar Scale */ 2661 #define CW_TR 12 /* Time remaining */ 2662 #define CW_CP 13 /* Chars per sec */ 2663 #define CW_WS 14 /* Window slots */ 2664 #define CW_PT 15 /* Packet type */ 2665 #define CW_PC 16 /* Packet count */ 2666 #define CW_PL 17 /* Packet length */ 2667 #define CW_PR 18 /* Packet retry */ 2668 #ifdef COMMENT 2669 #define CW_PB 18 /* Packet block check */ 2670 #endif /* COMMENT */ 2671 #endif /* CK_PCT_BAR */ 2672 2673 #define CW_ERR 19 /* Error message */ 2674 #define CW_MSG 20 /* Info message */ 2675 #define CW_INT 22 /* Instructions */ 2676 #define CW_FFC 99 /* File Characters Sent/Received */ 2677 #endif /* CK_CURSES */ 2678 2679 #ifndef NOICP 2680 /* Save Commands */ 2681 #define XSKEY 0 /* Key map file */ 2682 #define XSCMD 1 /* Command mode */ 2683 #define XSTERM 2 /* Terminal mode */ 2684 #endif /* NOICP */ 2685 2686 #ifndef NODIAL 2687 /* Dial routine sort priorities */ 2688 #define DN_INTERN 0 2689 #define DN_FREE 1 2690 #define DN_LOCAL 2 2691 #define DN_UNK 3 2692 #define DN_LONG 4 2693 #define DN_INTL 5 2694 #endif /* NODIAL */ 2695 2696 #ifdef SSHBUILTIN 2697 #define XSSH_OPN 1 2698 #define XSSH_V2 2 2699 #define XSSH_FLP 3 2700 #define XSSH_FRP 4 2701 #define XSSH_ADD 5 2702 #define XSSH_KEY 6 2703 #define XSSH_CLR 7 2704 #define XSSH_AGT 8 2705 2706 #define SSHKT_1R 0 /* SSH KEY TYPE symbols */ 2707 #define SSHKT_2R 1 /* must match ssh/key.h values */ 2708 #define SSHKT_2D 2 2709 #define SSHKT_SRP 3 2710 2711 #define SSHKD_IN 1 /* SSH KEY DISPLAY /IN-FORMAT */ 2712 #define SSHKD_OUT 2 /* SSH KEY DISPLAY /OUT-FORMAT */ 2713 2714 #define SKDF_OSSH 1 /* Key display format OpenSSH */ 2715 #define SKDF_SSHC 2 /* Key display format SSH.COM */ 2716 #define SKDF_IETF 3 /* Key display format IETF */ 2717 #define SKDF_FING 4 /* Key display format FINGERPRINT */ 2718 2719 #define SSHSW_USR 1 2720 #define SSHSW_VER 2 2721 #define SSHSW_CMD 3 2722 #define SSHSW_X11 4 2723 #define SSHSW_PWD 5 2724 #define SSHSW_SUB 6 2725 2726 #define SSHC_LPF 1 2727 #define SSHC_RPF 2 2728 2729 #define XSSH2_RKE 1 2730 2731 #define SSHF_LCL 1 2732 #define SSHF_RMT 2 2733 2734 #define SSHA_ADD 1 2735 #define SSHA_DEL 2 2736 #define SSHA_LST 3 2737 2738 #define SSHASW_FP 1 2739 2740 #define SSHK_PASS 1 2741 #define SSHK_CREA 2 2742 #define SSHK_DISP 3 2743 #define SSHK_V1 4 2744 2745 #define SSHKC_BI 1 2746 #define SSHKC_PP 2 2747 #define SSHKC_TY 3 2748 #define SSHKC_1R 4 2749 2750 #define SKRM_OPN 1 2751 #endif /* SSHBUILTIN */ 2752 2753 #ifdef SFTP_BUILTIN 2754 #define SFTP_OPN 1 2755 #define SFTP_CD 2 2756 #define SFTP_CHGRP 3 2757 #define SFTP_CHMOD 4 2758 #define SFTP_CHOWN 5 2759 #define SFTP_DIR 6 2760 #define SFTP_GET 7 2761 #define SFTP_MKDIR 8 2762 #define SFTP_PWD 9 2763 #define SFTP_PUT 10 2764 #define SFTP_REN 11 2765 #define SFTP_RM 12 2766 #define SFTP_RMDIR 13 2767 #define SFTP_LINK 14 2768 #define SFTP_VER 15 2769 2770 #define XY_SFTP_RCS 1 2771 #define XY_SFTP_EOL 2 2772 #endif /* SFTP_BUILTIN */ 2773 2774 /* ANSI-C prototypes for user interface functions */ 2775 2776 _PROTOTYP( VOID newerrmsg, (char *) ); 2777 _PROTOTYP( int isinternalmacro, ( int ) ); 2778 2779 #ifdef UNIX 2780 _PROTOTYP( int doputenv, ( char *, char * ) ); 2781 #endif /* UNIX */ 2782 2783 #ifndef OS2 2784 _PROTOTYP( int chkaes, ( char, int ) ); 2785 #endif /* OS2 */ 2786 2787 #ifndef NOICP 2788 _PROTOTYP( int matchname, ( char *, int, int ) ); 2789 _PROTOTYP( int ck_cls, ( void ) ); 2790 _PROTOTYP( int ck_cleol, ( void ) ); 2791 _PROTOTYP( int ck_curpos, ( int, int ) ); 2792 _PROTOTYP( int cmdsrc, ( void ) ); 2793 _PROTOTYP( int parser, ( int ) ); 2794 _PROTOTYP( int chkvar, (char *) ); 2795 _PROTOTYP( int zzstring, (char *, char **, int *) ); 2796 #ifndef NOFRILLS 2797 _PROTOTYP( int yystring, (char *, char **) ); 2798 #endif /* NOFRILLS */ 2799 _PROTOTYP( int getncm, (char *, int) ); 2800 _PROTOTYP( int getnct, (char *, int, FILE *, int) ); 2801 #endif /* NOICP */ 2802 _PROTOTYP( VOID bgchk, (void) ); 2803 _PROTOTYP( char * nvlook, (char *) ); 2804 _PROTOTYP( int xarray, (char *) ); 2805 _PROTOTYP( int arraynam, (char *, int *, int *) ); 2806 _PROTOTYP( int arraybounds, (char *, int *, int *) ); 2807 _PROTOTYP( int boundspair, (char *, char *, int *, int *, char *) ); 2808 _PROTOTYP( int arrayitoa, (int) ); 2809 _PROTOTYP( int arrayatoi, (int) ); 2810 _PROTOTYP( char * bldlen, (char *, char *) ); 2811 _PROTOTYP( int chkarray, (int, int) ); 2812 _PROTOTYP( int dclarray, (char, int) ); 2813 _PROTOTYP( int pusharray, (int, int) ); 2814 _PROTOTYP( int parsevar, (char *, int *, int *) ); 2815 _PROTOTYP( int macini, (void) ); 2816 _PROTOTYP( VOID initmac, (void) ); 2817 _PROTOTYP( int delmac, (char *, int) ); 2818 _PROTOTYP( int addmac, (char *, char *) ); 2819 _PROTOTYP( int domac, (char *, char *, int) ); 2820 _PROTOTYP( int addmmac, (char *, char *[]) ); 2821 _PROTOTYP( int dobug, (void) ); 2822 _PROTOTYP( int docd, (int) ); 2823 _PROTOTYP( int doclslog, (int) ); 2824 _PROTOTYP( int docmd, (int) ); 2825 _PROTOTYP( int dodir, (int) ); 2826 _PROTOTYP( int dodo, (int, char *, int) ); 2827 _PROTOTYP( int doenable, (int, int) ); 2828 _PROTOTYP( int dogoto, (char *, int) ); 2829 _PROTOTYP( int dogta, (int) ); 2830 _PROTOTYP( int dohlp, (int) ); 2831 _PROTOTYP (int doincr, (int) ); 2832 _PROTOTYP( int dohrmt, (int) ); 2833 _PROTOTYP( int doif, (int) ); 2834 _PROTOTYP( int doinput, (int, char *[], int[], int, int) ); 2835 _PROTOTYP( int doreinp, (int, char *, int) ); 2836 _PROTOTYP( int dolog, (int) ); 2837 _PROTOTYP( int dologin, (char *) ); 2838 _PROTOTYP( int doopen, (void) ); 2839 _PROTOTYP( int doprm, (int, int) ); 2840 _PROTOTYP( int doreturn, (char *) ); 2841 _PROTOTYP( int dormt, (int) ); 2842 _PROTOTYP( int dosort, (void) ); 2843 _PROTOTYP( int dostat, (int) ); 2844 _PROTOTYP( int dostop, (void) ); 2845 _PROTOTYP( int dotype, (char *, int, int, int, char *, int, char *, int, int, 2846 char *, int)); 2847 _PROTOTYP( int transmit, (char *, char, int, int, int) ); 2848 _PROTOTYP( int xlate, (char *, char *, int, int) ); 2849 _PROTOTYP( int litcmd, (char **, char **, int) ); 2850 _PROTOTYP( int incvar, (char *, CK_OFF_T, int) ); 2851 _PROTOTYP( int ckdial, (char *, int, int, int, int) ); 2852 _PROTOTYP( int hmsg, (char *) ); 2853 _PROTOTYP( int hmsga, (char * []) ); 2854 _PROTOTYP( int mlook, (struct mtab [], char *, int) ); 2855 _PROTOTYP( int mxlook, (struct mtab [], char *, int) ); 2856 _PROTOTYP( int mxxlook, (struct mtab [], char *, int) ); 2857 _PROTOTYP( int prtopt, (int *, char *) ); 2858 _PROTOTYP( CHAR rfilop, (char *, char) ); 2859 _PROTOTYP( int setcc, (char *, int *) ); 2860 _PROTOTYP( int setnum, (int *, int, int, int) ); 2861 _PROTOTYP( int seton, (int *) ); 2862 _PROTOTYP( int setonaut, (int *) ); 2863 _PROTOTYP( VOID shmdmlin, (void) ); 2864 _PROTOTYP( VOID initmdm, (int) ); 2865 _PROTOTYP( char * showoff, (int) ); 2866 _PROTOTYP( char * showooa, (int) ); 2867 _PROTOTYP( char * showstring, (char *) ); 2868 _PROTOTYP( int pktopn, (char *,int) ); 2869 _PROTOTYP( int traopn, (char *,int) ); 2870 _PROTOTYP( int sesopn, (char *,int) ); 2871 _PROTOTYP( int debopn, (char *,int) ); 2872 _PROTOTYP( int diaopn, (char *,int,int) ); 2873 _PROTOTYP( int prepop, (void) ); 2874 _PROTOTYP( int popclvl, (void) ); 2875 _PROTOTYP( int varval, (char *, CK_OFF_T *) ); 2876 _PROTOTYP( char * evala, (char *) ); 2877 _PROTOTYP( char * evalx, (char *) ); 2878 _PROTOTYP( int setalarm, (long) ); 2879 _PROTOTYP( int setat, (int) ); 2880 _PROTOTYP( int setinp, (void) ); 2881 _PROTOTYP( VOID dolognet, (void) ); 2882 _PROTOTYP( VOID dologline, (void) ); 2883 _PROTOTYP( int setlin, (int, int, int) ); 2884 _PROTOTYP( int setmodem, (void) ); 2885 _PROTOTYP( int setfil, (int) ); 2886 _PROTOTYP( char * homepath, (void) ); 2887 #ifdef OS2 2888 #ifdef COMMENT 2889 /* [jt] 2013/11/21 - static/non-static issue */ 2890 _PROTOTYP( int settapi, (void) ) ; 2891 #endif /* COMMENT */ 2892 #ifdef OS2MOUSE 2893 _PROTOTYP( int setmou, (void) ); 2894 #endif /* OS2MOUSE */ 2895 #endif /* OS2 */ 2896 #ifdef LOCUS 2897 _PROTOTYP( VOID setlocus, (int,int) ); 2898 _PROTOTYP( VOID setautolocus, (int) ); 2899 #endif /* LOCUS */ 2900 _PROTOTYP( int setbell, (void) ); 2901 _PROTOTYP( VOID setcmask, (int)); 2902 _PROTOTYP( VOID setautodl, (int,int)); 2903 _PROTOTYP( VOID setdebses, (int)); 2904 _PROTOTYP( VOID setseslog, (int)); 2905 _PROTOTYP( VOID setaprint, (int)); 2906 _PROTOTYP( int settrm, (void) ); 2907 _PROTOTYP( int settrmtyp, (void) ); 2908 _PROTOTYP( int setsr, (int, int) ); 2909 _PROTOTYP( int setxmit, (void) ); 2910 _PROTOTYP( int dosetkey, (void) ); 2911 _PROTOTYP( int dochk, (void) ); 2912 _PROTOTYP( int ludial, (char *, int) ); 2913 _PROTOTYP( char * getdnum, (int) ); 2914 _PROTOTYP( VOID getnetenv, (void) ); 2915 _PROTOTYP( int getyesno, (char *, int) ); 2916 _PROTOTYP( VOID xwords, (char *, int, char *[], int) ); 2917 #ifdef OS2 2918 _PROTOTYP( VOID keynaminit, (void) ); 2919 #endif /* OS2 */ 2920 _PROTOTYP( int xlookup, (struct keytab[], char *, int, int *) ); 2921 _PROTOTYP( char * rlookup, (struct keytab[], int, int) ); 2922 _PROTOTYP( int hupok, (int) ); 2923 _PROTOTYP( char * zzndate, (void) ); 2924 _PROTOTYP( char * zjdate, (char *) ); 2925 _PROTOTYP( char * jzdate, (char *) ); 2926 _PROTOTYP( char * ckdate, (void) ); 2927 _PROTOTYP( char * chk_ac, (int, char[]) ); 2928 _PROTOTYP( char * gmdmtyp, (void) ); 2929 _PROTOTYP( char * gfmode, (int, int) ); 2930 _PROTOTYP( int setdest, (void) ); 2931 _PROTOTYP( VOID ndinit, (void) ); 2932 _PROTOTYP( int doswitch, (void) ); 2933 _PROTOTYP( int dolocal, (void) ); 2934 _PROTOTYP( long tod2sec, (char *) ); 2935 _PROTOTYP( int lunet, (char *) ); 2936 _PROTOTYP( int doxdis, (int) ); 2937 _PROTOTYP( int dosave, (int) ); 2938 _PROTOTYP( int doxsend, (int) ); 2939 _PROTOTYP( int doxget, (int) ); 2940 _PROTOTYP( int doxconn, (int) ); 2941 _PROTOTYP( int clsconnx, (int) ); 2942 _PROTOTYP( VOID ftreset, (void) ); 2943 #ifdef CK_KERBEROS 2944 _PROTOTYP (int cp_auth, ( void ) ); 2945 #endif /* CK_KERBEROS */ 2946 _PROTOTYP( long mjd, (char *) ); 2947 _PROTOTYP( char * mjd2date, (long) ); 2948 _PROTOTYP( char * ckgetpid, (void) ); 2949 2950 _PROTOTYP( int dogrep, (void) ); 2951 2952 #ifndef NOFTP 2953 #ifndef SYSFTP 2954 _PROTOTYP( int doxftp, (void) ); 2955 _PROTOTYP( int doftphlp, (void) ); 2956 _PROTOTYP( int dosetftp, (void) ); 2957 _PROTOTYP( int dosetftphlp, (void) ); 2958 _PROTOTYP( int shoftp, (int) ); 2959 #endif /* SYSFTP */ 2960 #endif /* NOFTP */ 2961 2962 _PROTOTYP( VOID cmhistory, (void) ); 2963 _PROTOTYP( char * getdcset, (void) ); 2964 _PROTOTYP( char * ttgtpn, (void) ); 2965 2966 #ifndef NOSHOW 2967 _PROTOTYP( int doshow, (int) ); 2968 _PROTOTYP( int shotcp, (int) ); 2969 _PROTOTYP( VOID shopar, (void) ); 2970 _PROTOTYP( VOID shofil, (void) ); 2971 _PROTOTYP( VOID shoparp, (void) ); 2972 _PROTOTYP( int shoatt, (void) ); 2973 _PROTOTYP( VOID shover, (void) ); 2974 _PROTOTYP( VOID shoctl, (void) ); 2975 _PROTOTYP( VOID shodbl, (void) ); 2976 #ifndef NOSPL 2977 _PROTOTYP( int shomac, (char *, char *) ); 2978 _PROTOTYP( int doshift, (int) ); 2979 #endif /* NOSPL */ 2980 #ifndef NOCSETS 2981 _PROTOTYP( VOID shocharset, (void) ); 2982 _PROTOTYP( VOID shoparl, (void) ); 2983 _PROTOTYP( VOID shotcs, (int, int) ); 2984 #endif /* NOCSETS */ 2985 #ifndef NOLOCAL 2986 _PROTOTYP( VOID shoparc, (void) ); 2987 _PROTOTYP( int shomodem, (void) ); 2988 #ifndef NODIAL 2989 _PROTOTYP( VOID shods, (char *) ); 2990 _PROTOTYP( VOID shodial, (void) ); 2991 _PROTOTYP( int doshodial, (void) ); 2992 #endif /* NODIAL */ 2993 #ifndef NONET 2994 _PROTOTYP( int shonet, (void) ); 2995 _PROTOTYP( int shotopt, (int) ); 2996 _PROTOTYP( int shotel, (int) ); 2997 #ifdef CK_AUTHENTICATION 2998 _PROTOTYP (int sho_auth,( int ) ); 2999 #endif /* CK_AUTHENTICATION */ 3000 #endif /* NONET */ 3001 _PROTOTYP( VOID shomdm, (void) ); 3002 #endif /* NOLOCAL */ 3003 #ifdef OS2 3004 _PROTOTYP( VOID shokeycode, (int,int) ); 3005 #else 3006 _PROTOTYP( VOID shokeycode, (int) ); 3007 #endif /* OS2 */ 3008 _PROTOTYP( VOID showassoc, (void) ); 3009 _PROTOTYP( VOID showdiropts, (void) ); 3010 _PROTOTYP( VOID showdelopts, (void) ); 3011 _PROTOTYP( VOID showtypopts, (void) ); 3012 _PROTOTYP( VOID showpurgopts, (void) ); 3013 _PROTOTYP( VOID shoflow, (void) ); 3014 _PROTOTYP( VOID shoxfer, (void) ); 3015 #ifdef ANYSSH 3016 _PROTOTYP( VOID shossh, (void) ); 3017 #endif /* ANYSSH */ 3018 #endif /* NOSHOW */ 3019 3020 _PROTOTYP( VOID shostrdef, (CHAR *) ); 3021 3022 #ifndef NOSPL 3023 _PROTOTYP( int addlocal, (char *) ); 3024 #endif /* NOSPL */ 3025 3026 _PROTOTYP( int setdelopts, (void) ); 3027 3028 #ifdef VMS 3029 _PROTOTYP( int cvtdir, (char *, char *, int) ); 3030 #endif /* VMS */ 3031 3032 #ifdef FNFLOAT 3033 _PROTOTYP( VOID initfloat, (void) ); 3034 #endif /* FNFLOAT */ 3035 3036 #ifdef CKCHANNELIO 3037 _PROTOTYP( int dofile, (int) ); 3038 #endif /* CKCHANNELIO */ 3039 3040 #ifdef CKROOT 3041 _PROTOTYP( int dochroot, (void) ); 3042 #endif /* CKROOT */ 3043 3044 #ifdef NEWFTP 3045 _PROTOTYP( int doftpusr, (void) ); 3046 _PROTOTYP( int doftpput, (int,int) ); 3047 _PROTOTYP( int doftpget, (int,int) ); 3048 _PROTOTYP( int doftprmt, (int,int) ); 3049 _PROTOTYP( int ftpopen, (char *, char *, int) ); 3050 _PROTOTYP( int cmdlinget, (int) ); 3051 _PROTOTYP( int cmdlinput, (int) ); 3052 _PROTOTYP( int doftparg, (char) ); 3053 _PROTOTYP( int doftpacct, (void) ); 3054 _PROTOTYP( int doftpsite, (void) ); 3055 _PROTOTYP( int dosetftppsv, (void) ); 3056 _PROTOTYP( int ftpbye, (void) ); 3057 #endif /* NEWFTP */ 3058 3059 #ifdef COMMENT 3060 /* These prototypes are no longer used */ 3061 _PROTOTYP( char * getdws, (int) ); 3062 _PROTOTYP( char * getdcs, (int) ); 3063 _PROTOTYP( int doget, (int) ); 3064 _PROTOTYP( char * arrayval, (int, int) ); 3065 #endif /* COMMENT */ 3066 3067 #ifdef KUI 3068 _PROTOTYP(int BuildFontTable, 3069 (struct keytab ** pTable, struct keytab ** pTable2, int * pN)); 3070 #endif /* KUI */ 3071 3072 _PROTOTYP(int cx_net, (int net, int protocol, char * xhost, char * svc, 3073 char * username, char * password, char * command, 3074 int param1, int param2, int param3, 3075 int cx, int sx, int flag, int gui)); 3076 _PROTOTYP(int cx_serial, (char *device, 3077 int cx, int sx, int shr, int flag, int gui, int special)); 3078 3079 #endif /* CKUUSR_H */ 3080 3081 /* End of ckuusr.h */ 3082