| 1 |
# The 3022 is a vt220 clone made by Newbury in England. If anyone would be |
| 2 |
# kind enough to check this out on a genuine vt220, that would be much |
| 3 |
# appreciated. |
| 4 |
|
| 5 |
# define macro to display TERMinal-specific keychart file |
| 6 |
define-macro keychart ^[xpushlibd^M^U^[xshell-command-with-typeout cat keychart.$TERM^M^[xpopd^M |
| 7 |
|
| 8 |
# F keys |
| 9 |
bind-to-key beginning-of-line ^[[17~ |
| 10 |
bind-to-key beginning-of-file ^[[18~ |
| 11 |
bind-to-key shrink-window ^[[19~ |
| 12 |
bind-to-key split-current-window ^[[20~ |
| 13 |
bind-to-key next-window ^[[21~ |
| 14 |
bind-to-key delete-other-window ^[[23~ |
| 15 |
bind-to-key grow-window ^[[24~ |
| 16 |
bind-to-key end-of-file ^[[25~ |
| 17 |
bind-to-key end-of-line ^[[26~ |
| 18 |
bind-macro-to-key keychart ^[[28~ |
| 19 |
bind-to-key delete-next-character ^[[29~ |
| 20 |
bind-to-key backward-word ^[[31~ |
| 21 |
bind-to-key set-mark ^[[32~ |
| 22 |
bind-to-key exchange-point-and-mark ^[[33~ |
| 23 |
bind-to-key forward-word ^[[34~ |
| 24 |
|
| 25 |
# PF keys, for compatibility with vt100 |
| 26 |
bind-to-key beginning-of-line ^[OP |
| 27 |
bind-to-key backward-word ^[OQ |
| 28 |
bind-to-key forward-word ^[OR |
| 29 |
bind-to-key end-of-line ^[OS |
| 30 |
bind-to-key split-current-window ^[^[OP |
| 31 |
bind-to-key next-window ^[^[OQ |
| 32 |
bind-to-key grow-window ^[^[OR |
| 33 |
bind-to-key delete-other-window ^[^[OS |
| 34 |
|
| 35 |
# Arrow keys |
| 36 |
bind-to-key backward-character ^[[D |
| 37 |
bind-to-key previous-line ^[[A |
| 38 |
bind-to-key next-line ^[[B |
| 39 |
bind-to-key forward-character ^[[C |
| 40 |
bind-to-key backward-character ^[OD |
| 41 |
bind-to-key previous-line ^[OA |
| 42 |
bind-to-key next-line ^[OB |
| 43 |
bind-to-key forward-character ^[OC |
| 44 |
|
| 45 |
# Inscribed Function keys |
| 46 |
bind-to-key search-forward ^[[1~ |
| 47 |
bind-to-key newline-and-backup ^[[2~ |
| 48 |
bind-macro-to-key kill-line ^[[3~ |
| 49 |
bind-to-key search-reverse ^[[4~ |
| 50 |
bind-to-key scroll-down ^[[5~ |
| 51 |
bind-to-key scroll-up ^[[6~ |
| 52 |
|
| 53 |
# Numeric Keypad keys |
| 54 |
bind-to-key yank ^[Ow |
| 55 |
bind-to-key copy-region ^[Ox |
| 56 |
bind-to-key kill-region ^[Oy |
| 57 |
bind-to-key previous-page ^[Om |
| 58 |
bind-to-key spell-buffer ^[Ot |
| 59 |
bind-to-key fill-paragraph ^[Ou |
| 60 |
bind-to-key auto-fill-mode ^[Ov |
| 61 |
bind-to-key next-page ^[Ol |
| 62 |
bind-to-key list-buffers ^[Oq |
| 63 |
bind-to-key select-buffer ^[Or |
| 64 |
bind-to-key find-file ^[Os |
| 65 |
bind-to-key shell ^[OM |
| 66 |
bind-to-key execute-named-command ^[Op |
| 67 |
bind-to-key over-write-mode ^[On |
| 68 |
|
| 69 |
# ESC codes for vt100 compatibility |
| 70 |
bind-to-key set-mark ^[^[Ow |
| 71 |
bind-to-key exchange-point-and-mark ^[^[Oy |
| 72 |
bind-to-key newline-and-backup ^[^[Oq |
| 73 |
bind-macro-to-key kill-line ^[^[Os |