ckuusr.h 112 KB

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