# Hugh's .joverc # last updated 2001 February 05 # linux console ifenv TERM linux # jove.rc.linux: # This is the linux console. # Incomplete because DHR doesn't use function keys. ## define macro to display TERMinal-specific keychart file #define-macro keychart ^[xpushlibd^M^U^[xshell-command-with-typeout cat keychart.$TERM^M^[xpopd^M # Arrow keys bind-to-key previous-line ^[[A bind-to-key next-line ^[[B bind-to-key forward-character ^[[C bind-to-key backward-character ^[[D # keypad Insert bind-to-key newline-and-backup ^[[2~ # keypad Delete bind-to-key delete-previous-character ^[[3~ # keypad Home bind-to-key scroll-down ^[[1~ # keypad End bind-to-key scroll-up ^[[4~ # keypad Page Up bind-to-key previous-page ^[[5~ # keypad Page Down bind-to-key next-page ^[[6~ ## function keys: # F1 ^[[[A through F12 ^[[24~ # shift F1 ^[[25~ through F8 ^[[34~ endif bind-to-key previous-page ^Z bind-to-key apropos ^[? bind-to-key describe-key ^X? bind-to-key scroll-up ^[v bind-to-key push-shell ^C bind-to-key set-mark ^[ bind-to-key delete-buffer ^Xk bind-to-key find-tag-at-point ^X^T bind-to-key buffer-position ^X= bind-to-key shell-command ^[! bind-to-key shell ^[$ bind-to-key filter-region ^[@ bind-to-key delete-current-window ^X0 set right-margin 70 # set internal-tabstop 4 set c-indentation-increment 4 set c-argument-indentation 0 set match-regular-expressions ON # set mode-line %2c %[%s(%M) %b %m* %s"%f" %]%e%(%C%s%d/ %2c%) set mode-line %2c %[%s(%M) %b %i# %m* %s"%f" %]%e%(%C%s%d/ %2c%) set update-time-frequency 0 set expand-environment-variables on set one-key-confirmation on define-macro c-block {^M}^A^O^I bind-macro-to-key c-block ^[; define-macro previous-page-next-window ^Xn^Z^XP bind-macro-to-key previous-page-next-window ^[^Z define-macro next-article ^\\^~*Subject:^M^U^L bind-macro-to-key next-article ^[n define-macro goto-error ^A^@^[xsearch-forward-nd :^M^B^[w^X4f^Y^M^Xp^F^@^[xsearch-forward-nd :^M^B^[w^Xn^[g^Y^M bind-macro-to-key goto-error ^Xg # define-macro goto-n ^A^@^[F^[w^Xn^[g^Y^M # auto-execute-command auto-fill-mode /tmp/\{Re,article,rnmail,pn\} auto-execute-command auto-fill-mode /tmp/pico # auto-execute-command c-mode .*.\.[chy]$ # define-macro unshar ^\\^# *!/bin/sh^M^A^\\^exit.*^M^F^[xfilt sh^M define-macro quote-mail ^[r\^^I^M| ^M^[<^[r\^$^M|^M^[< bind-macro-to-key quote-mail ^X' # define-macro grep-uses ^[f^@^[b^[w^X!egrep -n '^Y' *.[ch] /dev/null^M define-macro grep-uses ^[xsearch-forward-nd \\>^M^@^[xsearch-reverse-nd \\<^M^[w^X!egrep -n '\\<^Y\\>' *.[ch] /dev/null^M bind-macro-to-key grep-uses ^Xu define-macro grep-uses-descend ^[xsearch-forward-nd \\>^M^@^[xsearch-reverse-nd \\<^M^[w^X!find * '(' -name '*.[ch]' -o -name '*.cpp' ')' -print0 | xargs -0 -r egrep -n '\\<^Y\\>'^M bind-macro-to-key grep-uses-descend ^XU bind-macro-to-key grep-uses-descend ^X^U define-macro find-file-ro ^X^F^[i^U^[xread-only^M bind-macro-to-key find-file-ro ^XF bind-macro-to-key find-file-ro ^Xf define-macro next-command-from-log ^Xp^[xsearch-forward-nd .[#$] ^M^@^E^[w^Xn^Y bind-macro-to-key next-command-from-log ^X^L # IBM-PC keys ifenv TERM at386 bind-to-key previous-page ^[[V bind-to-key next-page ^[[U # insert: ^[[@ # home ^[[H # end ^[[Y endif # NSA Telnet keys ifenv TERM vt100 set scroll-bar on bind-to-key previous-page ^[[5~ bind-to-key next-page ^[[6~ endif # xorg's xterm ifenv TERM xterm-256color # assume this is like xterm. Who knows. pushlibd 1 source jove.rc.xterm popd endif ifenv TERM xterm # F1-F4 bind-to-key execute-named-command ^[OP bind-to-key split-current-window ^[OQ bind-to-key next-window ^[OR bind-to-key delete-other-window ^[OS # home bind-to-key beginning-of-file ^[OH # end bind-to-key end-of-file ^[OF # delete bind-to-key delete-previous-character ^[[3~ # 5 key in numeric keypad bind-macro-to-key newline-and-beginning ^[OE endif