; MS-DOS Kermit command file for assigning EMACS commands to "intuitive" keys. ; Requires MS-DOS Kermit 2.30 or later. ; ; No distinction is made between new and old PC keyboards. New grey keys ; are used the same way as old keypad keys. To use keypad functions, ; Num Lock must be off. ; ; C. Gianone, Columbia University Center for Computing Activites, Dec 88 ; Kermit command PC Key EMACS command Function ; ; Arrow keys ; set key \331 \02 ; Left-arrow Ctrl-B Back character set key \4427 \02 ; Grey Left-arrow Ctrl-B Back character set key \333 \06 ; Right-arrow Ctrl-F Forward character set key \4429 \06 ; Grey Right-arrow Ctrl-F Forward character set key \328 \16 ; Up-arrow Ctrl-P Previous line set key \4424 \16 ; Grey Up-arrow Ctrl-P Previous line set key \336 \14 ; Down-arrow Ctrl-N Next line set key \4432 \14 ; Grey Down-arrow Ctrl-N Next line ; set key \845 \27F ; Shift Right-arrow ESC F Forward word set key \4941 \27F ; Shift Grey R-arr ESC F Forward word set key \843 \27B ; Shift Left-arrow ESC B Backward word set key \4939 \27B ; Shift Left-arrow ESC B Backward word set key \840 \27A ; Shift Up-arrow ESC A Backward sentence set key \4936 \27A ; Shift Grey U-arr ESC A Backward sentence set key \848 \27E ; Shift Down-arrow ESC E Forward sentence set key \848 \27E ; Shift Grey D-arr ESC E Forward sentence ; ; Home and End keys ; set key \327 \01 ; Home Ctrl-A Beginning of line set key \4423 \01 ; Grey Home Ctrl-A Beginning of line set key \335 \05 ; End Ctrl-E End of Line set key \4431 \05 ; Grey End Ctrl-E End of Line ; set key \839 \27[ ; Shift-Home ESC A Beginning of paragraph set key \4423 \27[ ; Shift-Grey-Home ESC A Beginning of paragraph set key \847 \27] ; Shift-End ESC E End of paragraph set key \4943 \27] ; Shift-Grey-End ESC E End of paragraph ; ; PgUp and PgDn keys ; set key \329 \27V ; PgUp ESC-V Previous screen set key \4425 \27V ; Grey PgUp ESC-V Previous screen set key \337 \22 ; PgDn Ctrl-V Next screen set key \4433 \22 ; Grey PgDn Ctrl-V Next screen set key \841 \27< ; Shift PgUp ESC < Beginning of file set key \4937 \27< ; Shift Grey PgUp ESC < Beginning of file set key \849 \27> ; Shift PgDn ESC > End of file set key \4945 \27> ; Shift Grey PgDn ESC > End of file ; ; Del(ete) key ; set key \339 \04 ; Del Ctrl-D Delete char forward set key \4435 \04 ; Grey Del Ctrl-D Delete char forward set key \851 \27D ; Shift Del ESC D Delete word forward set key \4947 \27D ; Shift Grey Del ESC D Delete word forward ; ; Backspace key ; set key \270 \127 ; Backspace Rubout Delete char backward set key \782 \27\127 ; Shift Backspace ESC Rubout Delete word backward ; ; Ins(ert) key ; set key \338 {} ; Ins(ert) (nothing) Insert chars here set key \4434 {} ; Ins(ert) (nothing) Insert chars here set key \850 \15 ; Shift Ins(ert) Ctrl-O Insert line here set key \4946 \15 ; Shift Grey Ins Ctrl-O Insert line here ; Functions for scrolling other window in split screen mode... ; Note - can't use Alt key for this, since unique scan codes aren't generated. ; Also note - these assignments disable normal Kermit screen rollback. ; set key \317 \24O ; F3 Ctrl-X O Go to other window set key \1412 \27-\27\22 ; Ctrl-PgUp ESC - ESC C-V Other window up set key \5508 \27-\27\22 ; Ctrl-Grey-PgUp ESC - ESC C-V Other window up set key \1398 \27\22 ; Ctrl-PgDn ESC C-V Other window down set key \5494 \27\22 ; Ctrl-Grey PgDn ESC C-V Other window down ; ; Assign normal Kermit screen rollback functions to F keys ; set key \315 \Kupscn ; F1 Up screen set key \316 \Kdnscn ; F2 Down screen set key \1374 \Kupone ; Ctrl-F1 Up one line set key \1375 \Kdnone ; Ctrl-F2 Down one line