| 1 |
# A vt220 clone made by Wyse |
| 2 |
|
| 3 |
# define macro to display TERMinal-specific keychart file |
| 4 |
define-macro keychart ^[xpushlibd^M^U^[xshell-command-with-typeout cat keychart.$TERM^M^[xpopd^M |
| 5 |
|
| 6 |
# Note that the terminal has to be correctly configured before these bindings |
| 7 |
# will work. A string of characters to fire at the terminal to achieve this |
| 8 |
# is included at the end of the file keychart.wyse (also another string to |
| 9 |
# deconfigure it). It may be convenient to call 'jove' by means of a wrapper |
| 10 |
# shell script which automatically configures the terminal before calling jove |
| 11 |
# (and maybe deconfigues it after). |
| 12 |
|
| 13 |
# F keys |
| 14 |
bind-to-key beginning-of-line ^[OA |
| 15 |
bind-to-key beginning-of-file ^[OB |
| 16 |
bind-to-key shrink-window ^[OC |
| 17 |
bind-to-key split-current-window ^[OD |
| 18 |
bind-to-key next-window ^[OE |
| 19 |
bind-to-key delete-other-window ^[OF |
| 20 |
bind-to-key grow-window ^[OG |
| 21 |
bind-to-key end-of-file ^[OH |
| 22 |
bind-to-key end-of-line ^[OI |
| 23 |
bind-macro-to-key keychart ^[OJ |
| 24 |
bind-to-key backward-word ^[OT |
| 25 |
bind-to-key set-mark ^[OU |
| 26 |
bind-to-key exchange-point-and-mark ^[OV |
| 27 |
bind-to-key forward-word ^[OW |
| 28 |
|
| 29 |
# PF keys, for compatibility with vt100 |
| 30 |
bind-to-key beginning-of-line ^[OP |
| 31 |
bind-to-key backward-word ^[OQ |
| 32 |
bind-to-key forward-word ^[OR |
| 33 |
bind-to-key end-of-line ^[OS |
| 34 |
bind-to-key split-current-window ^[^[OP |
| 35 |
bind-to-key next-window ^[^[OQ |
| 36 |
bind-to-key grow-window ^[^[OR |
| 37 |
bind-to-key delete-other-window ^[^[OS |
| 38 |
|
| 39 |
# Arrow keys |
| 40 |
bind-to-key backward-character ^[[D |
| 41 |
bind-to-key previous-line ^[[A |
| 42 |
bind-to-key next-line ^[[B |
| 43 |
bind-to-key forward-character ^[[C |
| 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 |