home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / mskermit / msipick.txt < prev    next >
Text File  |  2020-01-01  |  25KB  |  508 lines

  1.                   HISTORY DATABASE:
  2.       COMPUTER DATABASE MANAGEMENT FOR RESEARCH, WRITING, AND CATALOGING
  3.  
  4.                 David L. Clark
  5.                    24851 Piuma Road
  6.             Malibu, California 90265-3036
  7.                 (818) 888-9371
  8.  
  9.         USING KERMIT AS A TERMINAL EMULATION PROGRAM WITH PICK
  10.  
  11.              By David L. Clark, History Database
  12.  
  13. Kermit is a terminal emulation and communications program distributed free of
  14. charge by Columbia University. The use of Kermit for both terminal emulation
  15. and communications is thoroughly documented in the book Using MS-DOS Kermit:
  16. Connecting Your PC to the Electronic World, by Christine M. Gianone, published
  17. by Digital Press. A disk containing the Kermit program is included with the
  18. book. Copies of Kermit and additional documenation may be obtained from Kermit
  19. Distribution, Columbia University Center for Computing Activities, 612 West
  20. 115th Street, New York, NY 10025, (212) 854-3703.
  21.  
  22. Steps to Take for Terminal Emulation
  23.  
  24. To use Kermit as a terminal emulation program with Pick, take the following
  25. steps:
  26.     1.    Copy the files on the Kermit disk, placed in the A Drive of an
  27. IBM PC compatible computer, to the C Drive hard disk with the following
  28. command given in DOS:
  29.  
  30.       C> COPY A:*.*
  31.  
  32.     2.    The Kermit program is contained in the file "Kermit.exe". When
  33. Kermit is started, the program looks for an initialization file with the name
  34. "MSKermit.ini". I have supplied here the file "MSKermit.hd" which contains a
  35. complete set of initialization instructions intended for use with the
  36. full-screen editor of the History Database program, and the file
  37. "MSKermit.pck" which contains a very minimal set of initialization
  38. instructions intended for use with generic Pick. The History Database version
  39. moves Kermit functions away from keys which might be pressed accidentally,
  40. such as PG UP and PG DN, to CONTROL-ALT-Key combinations. Both initialization
  41. files are presented in detail below. To change back and forth between the two
  42. instruction sets give the following commands in DOS:
  43.  
  44.         To use the complete set give the command:
  45.  
  46.       C> COPY MSKermit.hd MSKermit.ini
  47.  
  48.         To use the minimal set give the command:
  49.  
  50.       C> COPY MSKermit.pck MSKermit.ini
  51.  
  52.     3.    Kermit emulates the VT320 terminal. Use the DEFINE-TERMINAL
  53. command, supplied by Pick Systems, to define the new terminal for the Pick
  54. operating system. The DEFINE-TERMINAL command and the parameters to use are
  55. presented below. Use either Pick's ACC file, which stores default parameters
  56. for each port, or the TERM command given from the affected port, to set the
  57. port to the appropriate terminal type. For example, if you used
  58. DEFINE-TERMINAL to create a terminal type "Z", after starting Kermit and
  59. logging onto Pick you would give the command:
  60.  
  61.       > TERM Z
  62.  
  63.     4.    Use Pick's SET-BAUD and XCS-ON commands to set the baud rate
  64. for the port to match that in Kermit's initialization file. The rate is 19200
  65. on the file supplied here. Use the XCS-ON command to allow use of the IBM
  66. Extended ASCII graphics characters, if you wish to use those characters.
  67. Follow each command with the port number. For example, for port number one:
  68.  
  69.       > SET-BAUD 1,19200
  70.       > XCS-ON 1
  71.  
  72.     5.    Connect the host computer and the IBM PC with Kermit loaded
  73. with a null modem serial cable.
  74.  
  75.     6.    On the IBM PC, begin the Kermit program with the command:
  76.  
  77.       C> Kermit
  78.  
  79.     7.    To wake up Pick, just as you would after turning on a
  80. terminal, press the ENTER key on the IBM PC running Kermit. When the Pick
  81. logon message appears, give your account name. After you have logged on, give
  82. the TERM command to set the port to the appropriate terminal type.
  83.  
  84.     8.    To see the communications parameters used press CONTROL-ALT-S
  85. if you employed the full MSKermit.hd instruction set, or ALT-S if you employed
  86. the minimal MSKermit.pck instruction set.
  87.  
  88.     9.    To print a copy of a Pick screen, connect a printer to the
  89. parallel port of the IBM PC running Kermit and press the Print Screen key. To
  90. dump a copy of the Pick screen to the DOS file "Kermit.scn" press
  91. SHIFT-CONTROL-ALT-END if you employed the full MSKermit.hd instruction set, or
  92. CONTROL-END if you employed the minimal MSKermit.pck instruction set. Each
  93. time that you give the dump command, the current screen will be added to the
  94. DOS Kermit.scn file, separated from previous screens by a form feed character.
  95. To roll the screen up and down, press CONTROL-ALT-PG UP and CONTROL-ALT-PG DN
  96. if you employed MSKermit.hd or PG UP and PG DN if you employed MSKermit.pck.
  97.  
  98.     10.    To give Kermit commands, call up the "MS-Kermit>" prompt by
  99. pressing CONTROL-ALT-X if you employed the full MSKermit.hd instruction set,
  100. or ALT-X if you employed the minimal MSKermit.pck instruction set. Give Kermit
  101. commands at the "MS-Kermit>" prompt only. All of the commands shown below for
  102. the MSKermit.hd and MSKermit.pck instruction sets are Kermit commands that
  103. could be given or modified at the "MS-Kermit>" prompt. The comments included
  104. with the instruction sets include alternate versions of the commands. For
  105. example, to see the communication and terminal definitions used, at the Kermit
  106. prompt you would give the commands SHOW COMM and SHOW TERM. To reconnect to
  107. Pick you would then give the Kermit command CONNECT:
  108.  
  109.       MS-Kermit> SHOW COMM
  110.       MS-Kermit> SHOW TERM
  111.       MS-Kermit> CONNECT
  112.  
  113.     11.    When you are finished, give the OFF command in Pick, just as
  114. you would from a terminal:
  115.  
  116.       > OFF
  117.  
  118.     12.    To exit from Kermit and return to the DOS prompt, give the
  119. EXIT command at the Kermit prompt. Be to give OFF from Pick before you EXIT
  120. from Kermit.
  121.  
  122.       MS-Kermit> EXIT
  123.  
  124. The Kermit Initialization File
  125.  
  126. Kermit looks for an initialization file with the name "MSKermit.ini". Two
  127. versions are presented here. The file "MSKERMIT.HD" contains a complete set of
  128. initialization instructions intended for use with the full-screen editor of
  129. the History Database program. The file "MSKERMIT.PCK" contains a very minimal
  130. set of initialization instructions intended for use with generic Pick. The
  131. History Database version moves Kermit functions away from keys which might be
  132. pressed accidentally to CONTROL-ALT-Key combinations. Copy the file that you
  133. wish to use to the filename "MSKERMIT.INI".  In the files presented below,
  134. note that the semicolon is used to begin a comment in Kermit. ASCII characters
  135. may be employed by preceding the ASCII number with a backslash. For example,
  136. to send a Carriage Return -- Line Feed: "\13\10".  To reset a key, the scan
  137. code is followed by the ASCII value. A table of IBM PC scan codes appears in
  138. Using MS-DOS Kermit. The form of the command is:
  139.  
  140.       SET KEY \scan-code \ascii
  141.  
  142. All of the commands shown are Kermit commands which can be given from the
  143. "MS-Kermit>" prompt. Alternatives to the commands used are also presented.
  144.  
  145. MSKERMIT.PCK Minimal Initialization File:
  146.  
  147. ;* MSKERMIT.PCK  History Database  David L. Clark  01/09/1991
  148. ;* Initialize Kermit for use with generic Pick, not History Database.
  149. ;* DOS: C:\Kermit\MSKermit.pic
  150. ;* For full History Database definition:  COPY MSKERMIT.HD  MSKERMIT.INI
  151. ;* For minimum generic Pick definition:   COPY MSKERMIT.PCK MSKERMIT.INI
  152. ;* For minimum definition, some commands have been commented out,
  153. ;*   most key redefinitions not included.
  154. CLEAR                             ;* Clear communications buffer
  155. SET TERM CLEAR-SCREEN             ;* Clear the screen
  156. ECHO MS-DOS Kermit 3.0 set for use with Pick \13\10
  157. ECHO Press ENTER to connect to Pick\13\10
  158. ;* Communication Parameters
  159. SET PORT 1                        ;* For IBM PC COM1
  160. SET BAUD 19200                    ;* Alternatives: 38400, 9600, 2400, 1200
  161. SET PARITY NONE                   ;* Alternatives: EVEN, ODD, MARK, SPACE
  162. SET FLOW-CONTROL XON/XOFF         ;* Alternative: NONE
  163. SET DUPLEX FULL                   ;* Alternative: HALF
  164. ;* Emulate DEC VT320 terminal
  165. SET TERM VT320                    ;* Alternatives: VT102, VT52, HEATH-19
  166. ;* Use IBM Extended ASCII
  167. SET DISPLAY 8-BIT                 ;* Chars over 127 from host to term
  168. SET TERM CHAR TRANSPARENT         ;* Chars over 127 from host to term
  169. SET TERM CONTROLS 8               ;* Keys  over 127 from term to host
  170. ;* Set Screen
  171. SET MODE-LINE OFF                 ;* No status line
  172. SET TERM WRAP ON                  ;* Kermit does line wrap
  173. SET TERM CURSOR UNDERLINE         ;* Alternative: BLOCK
  174. ;* Must start with low intensity, or bold, dim functions reversed.
  175. SET TERM COLOR 0 32 40            ;* Low intensity, green on black.
  176. ;* SET TERM GRAPHICS ?            ;* Alternatives: CGA, EGA, VGA
  177. ;* SET PROMPT ?                   ;* Default prompt: MS-Kermit>
  178. ;* Set Keys
  179. SET KEY \270 \8                   ;* Set Backspace to Control-H
  180. ;* Log to Pick
  181. CONNECT                           ;* User takes over
  182.  
  183. MSKERMIT.HD Full History Database Initialization File:
  184.  
  185. ;* MSKermit.hd  History Database  David L. Clark  01/09/1991
  186. ;* Initialize Kermit for use with Pick, History Database.
  187. ;* DOS: C:\Kermit\MSKermit.hd
  188. ;* For full History Database definition:  COPY MSKermit.hd  MSKermit.ini
  189. ;* For minimum generic Pick definition:   COPY MSKermit.pck MSKermit.ini
  190. ;* If some commands do not get through, check the file for a CRLF at the
  191. ;*   end of every line with the DOS command:
  192. ;*   TYPE \Kermit\MSKermit.hd | MORE
  193. ;* The IBM PC scan codes for resetting keys appear in "Using MS-DOS Kermit"
  194. ;*   by Christione M. Gianone, page 231.
  195. ;* For Clear Screen to clear the 25th row, give Pick's DEFINE-TERMINAL 
  196. ;*   procedure the Escape sequences for Clear Screen, Position Row
  197. ;*   Bottom, Clear Line, Position Home:
  198. ;*   ESC "[2J" ESC "[25;0H" ESC "[2K" ESC "H"
  199. ;* To reach the 25th row for display, you must give explicit
  200. ;*   CRT @(Col, Row) commands. If you try to wrap characters from the
  201. ;*   24th row to the 25th, the screen will scroll. Placing a char on the 
  202. ;*   last column of the 24th or 25th row will not cause a scroll.
  203. ;*   There is no Scroll Lock function available on the VT320.
  204. ;*   To set top, bottom rows, counting from 1: 
  205. ;*     CRT Escape$ : "[" : Row.Top : ";" : Row.Bottom : "r"
  206. ;*   Setting Row.Bottom to 25 did not change the 24 row screen.
  207. ;* To set the status line:
  208. ;*   Status.Line.Host$  = Escape$ : "[0$~"
  209. ;*   Status.Line.Blank$ = Escape$ : "[2$~"
  210. ;*   Status.Line.On$    = Escape$ : "[1$~"
  211. CLEAR                             ;* Clear communications buffer
  212. SET TERM CLEAR-SCREEN             ;* Clear the screen in Kermit
  213. ECHO MS-DOS Kermit 3.0 set for use with Pick, History Database \13\10
  214. ECHO Press ENTER to connect to Pick\13\10
  215. ;* Communication Parameters
  216. SET PORT 1                        ;* Alternatives: 2, 3, 4, NETBIOS, NOVELL
  217. SET BAUD 19200                    ;* Alternatives: 38400, 9600, 2400, 1200
  218. SET PARITY NONE                   ;* Alternatives: EVEN, ODD, MARK, SPACE
  219. SET FLOW-CONTROL XON/XOFF         ;* Alternative: NONE
  220. SET DUPLEX FULL                   ;* Alternative: HALF
  221. ;* Emulate DEC VT320 terminal
  222. SET TERM VT320                    ;* Alternatives: VT102, VT52, HEATH-19
  223. ;* Use IBM Extended ASCII
  224. SET DISPLAY 8-BIT                 ;* Chars over 127 from host to term
  225. SET TERM CHAR TRANSPARENT         ;* Chars over 127 from host to term
  226. SET TERM CONTROLS 8               ;* Keys  over 127 from term to host
  227. ;* Set Screen
  228. SET MODE-LINE OFF                 ;* No status line
  229. ;* Modeline toggle function
  230. SET KEY \330 \45                  ;* Use keypad minus as minus
  231. ;* Function will not work if SET MODE-LINE OFF given.
  232. ;* SET KEY \3402 \KModeline       ;* Use Ctrl-Alt-minus as modeline
  233. SET TERM TEK DISABLE              ;* Not using Textronix graphics
  234. SET TERM WRAP ON                  ;* Kermit does line wrap
  235. SET TERM CURSOR UNDERLINE         ;* Alternative: BLOCK
  236. ;* Must start with low intensity, or bold, dim functions reversed.
  237. SET TERM COLOR 0 32 40            ;* Low intensity, green on black.
  238. SET TERM GRAPHICS AUTO            ;* Alternatives: CGA, EGA, VGA
  239. ;* SET PROMPT ?                   ;* Default prompt: MS-Kermit>
  240. ;* Set Keys
  241. ;* Control-Keys
  242. SET KEY \19 \255                  ;* Disable Control-S as Pause
  243. SET ESCAPE \19                    ;* Do not use ASCII 29 for Ctrl-] Escape.
  244. SET KEY \3355 \19                 ;* Use Ctrl-Alt-] as Escape
  245. ;* Alt-Keys: Move to Ctrl-Alt-Key
  246. SET KEY \2352                     ;* Disable Alt-B  as Break
  247. SET KEY \3376 \KBreak             ;* Use Ctrl-Alt-B as Break
  248. SET KEY \2339                     ;* Disable Alt-H  as Help
  249. SET KEY \3363 \KHelp              ;* Use Ctrl-Alt-H as Help
  250. SET KEY \2335                     ;* Disable Alt-S  as Status
  251. SET KEY \3359 \KStatus            ;* Use Ctrl-Alt-S as Status
  252. SET KEY \2349                     ;* Disable Alt-X  as Exit
  253. SET KEY \3373 \KExit              ;* Use Ctrl-Alt-X as Exit
  254. SET KEY \2434                     ;* Disable Alt--  as Term Type
  255. SET KEY \3458 \KTermType          ;* Use Ctrl-Alt-- as Term Type
  256. SET KEY \2435                     ;* Disable Alt-=  as Reset
  257. SET KEY \3459 \KReset             ;* Use Ctrl-Alt-= as Reset
  258. ;* Edit Keys
  259. SET KEY \270 \8                   ;* Set Backspace to Control-H
  260. SET KEY \4435 \127                ;* Delete: Gray
  261. SET KEY \339 \127                 ;* Delete: Keypad
  262. SET KEY \4431 \18                 ;* End: Gray
  263. SET KEY \335 \18                  ;* End: Keypad
  264. SET KEY \3487 \KEndScn            ;* Use Gray Ctrl-Alt-End as End Screen
  265. SET KEY \327 \24                  ;* Home: Keypad
  266. SET KEY \4423 \24                 ;* Home: Gray
  267. SET KEY \3479 \KHomScn            ;* Use Gray Ctrl-Alt-Home as Home Screen
  268. SET KEY \338 \16                  ;* Insert: Keypad
  269. SET KEY \4434 \16                 ;* Insert: Gray
  270. SET KEY \4433 \26                 ;* Pg Dn: Gray
  271. SET KEY \337 \26                  ;* Pg Dn: Keypad
  272. SET KEY \3489 \KDnScn             ;* Use Gray Ctrl-Alt-PgDn as Down Screen
  273. SET KEY \4425 \23                 ;* Pg Up: Gray
  274. SET KEY \329 \23                  ;* Pg Up: Keypad
  275. SET KEY \3481 \KUpScn             ;* Use Gray Ctrl-Alt-PgUp as Up Screen
  276. ;* Shift-Edit Keys
  277. SET KEY \782 \8                   ;* Set Backspace to Control-H
  278. SET KEY \4947 \127                ;* Delete: Gray
  279. SET KEY \851 \127                 ;* Delete: Keypad
  280. SET KEY \4943 \18                 ;* End: Gray
  281. SET KEY \847 \18                  ;* End: Keypad
  282. SET KEY \796 \13                  ;* Enter: Gray
  283. SET KEY \4877 \13                 ;* Enter: Keypad
  284. SET KEY \4935 \24                 ;* Home: Gray
  285. SET KEY \839 \24                  ;* Home: Keypad
  286. SET KEY \4946 \16                 ;* Insert: Gray
  287. SET KEY \850 \16                  ;* Insert: Keypad
  288. SET KEY \4945 \5                  ;* Pg Dn: Gray
  289. SET KEY \849 \5                   ;* Pg Dn: Keypad
  290. SET KEY \4937 \4                  ;* Pg Up: Gray
  291. SET KEY \841 \4                   ;* Pg Up: Keypad
  292. SET KEY \783 \9                   ;* Tab
  293. ;* Control-Edit Keys
  294. SET KEY \127 \8                   ;* Set Backspace to Control-H
  295. SET KEY \5523 \127                ;* Delete: Gray
  296. SET KEY \1427 \127                ;* Delete: Keypad
  297. SET KEY \5493 \18                 ;* Ctrl-End: Gray
  298. ;* Dump screen image to DOS file Kermit.scn
  299. SET KEY \3999 \KDump              ;* Use Gray Shift-Ctrl-Alt-End as Dump
  300. SET KEY \1397 \18                 ;* End: Keypad
  301. SET KEY \10 \13                   ;* Enter: Gray
  302. SET KEY \5386 \13                 ;* Enter: Keypad
  303. SET KEY \5495 \24                 ;* Home: Gray
  304. SET KEY \1399 \24                 ;* Home: Keypad
  305. SET KEY \5522 \16                 ;* Insert: Gray
  306. SET KEY \1426 \16                 ;* Insert: Keypad
  307. SET KEY \5494 \5                  ;* Ctrl-Pg Dn: Gray
  308. SET KEY \4001 \KDnOne             ;* Use Gray Shift-Ctrl-Alt-PgDn as Down 1
  309. SET KEY \1398 \5                  ;* Pg Dn: Keypad
  310. SET KEY \5508 \4                  ;* Ctrl-Pg Up: Gray
  311. SET KEY \3993 \KUpOne             ;* Use Gray Shift-Ctrl-Alt-PgUp as Up 1
  312. SET KEY \1412 \4                  ;* Pg Up: Keypad
  313. SET KEY \1394 \255                ;* Disable Ctrl-Print Screen
  314. SET KEY \1428 \9                  ;* Tab
  315. ;* Arrow Keys
  316. SET KEY \4432 \31                 ;* Down:   Gray
  317. SET KEY \336 \31                  ;* Down:   Keypad
  318. SET KEY \4427 \29                 ;* Left:   Gray
  319. SET KEY \331 \29                  ;* Left:   Keypad
  320. SET KEY \4429 \28                 ;* Right:  Gray
  321. SET KEY \333 \28                  ;* Right:  Keypad
  322. SET KEY \4424 \30                 ;* Up:     Gray
  323. SET KEY \328 \30                  ;* Up:     Keypad
  324. ;* Shift-Arrow Keys
  325. SET KEY \4944 \2                  ;* Down:   Gray
  326. SET KEY \848 \2                   ;* Down:   Keypad
  327. SET KEY \4939 \1                  ;* Left:   Gray
  328. SET KEY \843 \1                   ;* Left:   Keypad
  329. SET KEY \4941 \6                  ;* Right:  Gray
  330. SET KEY \845 \6                   ;* Right:  Keypad
  331. SET KEY \4936 \20                 ;* Up:     Gray
  332. SET KEY \840 \20                  ;* Up:     Keypad
  333. ;* Control--Arrow Keys
  334. SET KEY \5521 \2                  ;* Down:   Gray
  335. SET KEY \1425 \2                  ;* Down:   Keypad
  336. SET KEY \5491 \1                  ;* Left:   Gray
  337. SET KEY \1395 \1                  ;* Left:   Keypad
  338. SET KEY \5492 \6                  ;* Right:  Gray
  339. SET KEY \1396 \6                  ;* Right:  Keypad
  340. SET KEY \5517 \20                 ;* Up:     Gray
  341. SET KEY \1421 \20                 ;* Up:     Keypad
  342. ;* Function Keys
  343. SET KEY \315 \176                 ;* F1
  344. SET KEY \316 \177                 ;* F2
  345. SET KEY \317 \178                 ;* F3
  346. SET KEY \318 \179                 ;* F4
  347. SET KEY \319 \180                 ;* F5
  348. SET KEY \320 \181                 ;* F6
  349. SET KEY \321 \182                 ;* F7
  350. SET KEY \322 \183                 ;* F8
  351. SET KEY \323 \184                 ;* F9
  352. SET KEY \324 \185                 ;* F10
  353. SET KEY \389 \186                 ;* F11
  354. SET KEY \390 \187                 ;* F12
  355. ;* Shift-Function Keys
  356. SET KEY \852 \188                 ;* F1
  357. SET KEY \853 \189                 ;* F2
  358. SET KEY \854 \190                 ;* F3
  359. SET KEY \855 \191                 ;* F4
  360. SET KEY \856 \192                 ;* F5
  361. SET KEY \857 \193                 ;* F6
  362. SET KEY \858 \194                 ;* F7
  363. SET KEY \859 \195                 ;* F8
  364. SET KEY \860 \196                 ;* F9
  365. SET KEY \861 \197                 ;* F10
  366. SET KEY \903 \198                 ;* F11
  367. SET KEY \904 \199                 ;* F12
  368. ;* Control-Function Keys
  369. SET KEY \1374 \200                ;* F1
  370. SET KEY \1375 \201                ;* F2
  371. SET KEY \1376 \202                ;* F3
  372. SET KEY \1377 \203                ;* F4
  373. SET KEY \1378 \204                ;* F5
  374. SET KEY \1379 \205                ;* F6
  375. SET KEY \1380 \206                ;* F7
  376. SET KEY \1381 \207                ;* F8
  377. SET KEY \1382 \208                ;* F9
  378. SET KEY \1383 \209                ;* F10
  379. SET KEY \1417 \210                ;* F11
  380. SET KEY \1418 \211                ;* F12
  381. ;* Additional Kermit functions
  382. ;* Push to DOS function
  383. ;*   "C>" prompt will appear.
  384. ;*   Message: "Press space to continue ...". Press SPACEBAR.
  385. ;*   To return to Pick: EXIT command. 
  386. ;*   Pick screen then reappears where left.
  387. ;*   Must return to Pick to log off.
  388. SET KEY \3353 \KDos               ;* Ctrl-Alt-P to Push to DOS
  389. ;* File transfer parameters
  390. SET TRANSFER CHAR TRANSPARENT     ;* Chars over 127 from host to term
  391. ;* Log to Pick. Pause for connection, then wake up Pick with ENTER.
  392. ;* With CONNECT command, user takes over.
  393. CONNECT
  394.  
  395. Use the DEFINE-TERMINAL Command to Define a New Terminal for Pick (For more
  396. information on DEFINE-TERMINAL, see: Programming with IBM PC Basic and the
  397. Pick Database System, by David L. Clark, page 300.)  The DEFINE-TERMINAL
  398. command may be used to create definitions for terminals not already defined on
  399. the system. To begin the procedure, at Pick TCL give the command:
  400.  
  401.       DEFINE-TERMINAL
  402.  
  403. The system will take half a minute to round up all of the terminal definitions
  404. available, and then will display DEFINE-TERMINAL's main menu.  DEFINE-TERMINAL
  405. Menu:
  406.  
  407.       System Cursor Definition Utility
  408.  
  409.       The following terminals are defined. Terminals marked with an
  410.       asterisk (*) are selected to be included in your System Cursor
  411.       Definition.
  412.  
  413.       *A ADDS580       *F TV910      *M AMPEX.D80    *W WYSE50
  414.       *D DATAMEDIA     *I IBMPC      *R REGENT       *Y WYSE.60
  415.       *E ESPRIT6310    *J VT100      *T TV950        *Z VT320
  416.  
  417.       1) Create Terminal Definition
  418.       2) Modify Terminal Definition
  419.       3) Delete Terminal Definition
  420.       4) Add Terminal to Selected Definitions
  421.       5) Delete Terminal from Selected Definitions
  422.       EX Exit without updating System-Cursor
  423.       FI Update System-Cursor to selected terminals
  424.  
  425.          Enter Selection (1-5) or EX or FI: 
  426.  
  427. To change or review a terminal choose "Modify Terminal Definition". The
  428. procedure then requests the name (not the one-letter code) of the terminal to
  429. be modified.  After the name is entered, the Modify Terminal screen is
  430. presented with the named terminal's characteristics. Only one terminal is
  431. displayed at a time. For this example three terminals have been shown
  432. together. The MM-MON definition for the memory-mapped monitor of an IBM PC
  433. used as the main computer was supplied by the Pick Systems. The WYSE.60 and
  434. VT.320 definitions were created with the DEFINE-TERMINAL procedure. To create
  435. a new terminal definition, fill in the categories with the appropriate Escape
  436. codes for the terminal.
  437.  
  438. Modify Terminal Screen:
  439.  
  440. Terminal =                       MM-MON             WYSE.60          VT.320
  441.  
  442.  1. TYPE......................   I                  Y                Z
  443.  2. SCREEN SIZE...............   80,25              80,25            80,25    
  444.  3. CURSOR ADDRESS CODE.......   H                  D+               D+      
  445.  4. @(X) CURSOR POSITIONING...   ESC "=" X DEL      CR               CR ESC
  446.                                                     STR(CHAR(12,X)   "[" X "C"
  447.                                                     BS             BS
  448.  5. @(X,Y) CURSOR ADDRESSING..   ESC "=" X Y        ESC "a" Y      ESC "[" Y
  449.                                                     "R" X "C"      ";" X "H"
  450.  6. @(-1) CLEAR SCREEN & HOME.   ESC "*" CHAR(1)    CHAR(26)       ESC "[2J"
  451.                                                                    ESC "[25;0H"
  452.                                                                    ESC "[2K"
  453.                                                                    ESC "[H"
  454.  7. @(-2) CURSOR HOME.........   ESC "*" CHAR(2)    CHAR(30)       ESC "[H" 
  455.  8. @(-3) CLEAR TO END OF PAGE   ESC "*" CHAR(3)    ESC "Y"        ESC "[J"  
  456.                                                                    ESC "[25;0H"
  457.                                                                    ESC "[2K" 
  458.  9. @(-4) CLEAR TO END OF LINE   ESC "*" CHAR(4)    ESC "T"        ESC "[K" 
  459. 10. @(-5) START BLINK.........   ESC "*" CHAR(5)    ESC "G2"       ESC "[5m" 
  460. 11. @(-6) STOP BLINK..........   ESC "*" CHAR(6)    ESC "G0"       ESC "[25m"
  461. 12. @(-7) START PROTECT.......   ESC "*" CHAR(7)    ESC ")"        ESC "[22m"
  462. 13. @(-8) STOP PROTECT........   ESC "*" CHAR(8)    ESC "("        ESC "[1m"
  463. 14. @(-9) CURSOR BACK.........   ESC "*" CHAR(9)    ESC BS         ESC "[D"  
  464. 15. @(-10) CURSOR UP..........   ESC "*" CHAR(10)   ESC VT         ESC "[A"
  465. 16. @(-11) ENABLE PROTECT MODE   ESC "*" CHAR(11)   ESC "&" 
  466. 17. @(-12)DISABLE PROTECT MODE   ESC "*" CHAR(12)   ESC "'" 
  467. 18. @(-13) START REVERSE VIDEO   ESC "*" CHAR(13)   ESC "G4"       ESC "[7m" 
  468. 19. @(-14) STOP REVERSE VIDEO.   ESC "*" CHAR(14)   ESC "G0"       ESC "[27"m 
  469. 20. @(-15) START UNDERLINE....   ESC "*" CHAR(15)   ESC "G8"       ESC "[4m" 
  470. 21. @(-16) STOP UNDERLINE.....   ESC "*" CHAR(16)   ESC "G0"       ESC "[24m" 
  471. 22. @(-17) SLAVE ON...........                      ESC CHAR(24) 
  472. 23. @(-18) SLAVE OFF..........                      ESC CHAR(20) 
  473. 24. @(-19) CURSOR FORWARD.....   ESC "*" CHAR(19)   FF 
  474. 25. @(-20) CURSOR DOWN........   LF                 LF 
  475. 26. @(-21) GRAPH CHAR SET ON.. 
  476. 27. @(-22) GRAPH CHAR SET OFF. 
  477. 28. @(-23) KEYBOARD LOCK...... 
  478. 29. @(-24) KEYBOARD UNLOCK.... 
  479. 30. @(-25) CONTROL CHAR ENABLE 
  480. 31. @(-26) CONTROL CHR DISABLE 
  481. 32. @(-27) WRITE STATUS LINE.. 
  482. 33. @(-28) ERASE STATUS LINE.. 
  483. 34. @(-29) INIT TERMINAL MODE. 
  484. 35. @(-30) DOWNLOAD FUNC KEYS. 
  485. 36. @(-31) NON-EMBED STAND ON. 
  486. 37. @(-31) NON-EMBED STAND OFF 
  487. 38. @(-99) EMBEDED ATTRIBS?...   NO                 NO             NO 
  488. 39.@(-100) HALF INTENSITY.....                      ESC "Gp"       ESC "[22m" 
  489. 40.@(-101) FULL INTENSITY....                       ESC "G0"       ESC "[1m" 
  490.  
  491. The list of choices is divided between two screens. After each screen is
  492. displayed, the DEFINE-TERMINAL procedure prompts:
  493.  
  494.       Modify lines?
  495.  
  496. When the answer to the DEFINE-TERMINAL program's "Modify lines?" question is
  497. finally "NO", the program asks if the table is correct. If the answer is "YES"
  498. the procedure tries to compile the table. If there is an error, an error
  499. message appears. Otherwise, the procedure returns to the first screen. To
  500. store the new configuration, enter "FI" for File Item.  The Kermit terminal
  501. emulation program emulates the VT320 terminal. The DEFINE-TERMINAL definition
  502. presented here for use with Kermit implements a 25-line screen, rather than
  503. the standard 24-line screen of the VT320 terminal. The size of the screen has
  504. been defined as "80,25" and Escape codes have been added to the Clear Screen
  505. and Home and the Clear to End of Page instructions to go to the 25th line and
  506. clear it. To use only a 24-line screen, define the screen size as "80,24" and
  507. eliminate the extra Escape codes ESC "[25;0H" ESC "[2K".
  508.