keybind_lynx.c (8760B)
1 /* $Id$ */ 2 /* 3 * Lynx-like key binding. 4 * 5 * modified from original keybind.c by Keisuke Hashimoto 6 * <hasimoto@shimada.nuee.nagoya-u.ac.jp> 7 * http://www.shimada.nuee.nagoya-u.ac.jp/~hasimoto/ 8 * 9 * further modification by Akinori Ito 10 * 11 * Date: Tue, 23 Feb 1999 13:14:44 +0900 12 */ 13 14 #include "funcname2.h" 15 16 unsigned char GlobalKeymap[128] = { 17 /* C-@ C-a C-b C-c C-d C-e C-f C-g */ 18 _mark, goLineF, backBf, nulcmd, nulcmd, goLineL, followA, curlno, 19 /* C-h C-i C-j C-k C-l C-m C-n C-o */ 20 ldHist, nextA, followA, cooLst, rdrwSc, followA, nextA, nulcmd, 21 /* C-p C-q C-r C-s C-t C-u C-v C-w */ 22 prevA, closeT, reload, srchfor, tabA, prevA, pgFore, rdrwSc, 23 /* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ 24 nulcmd, nulcmd, susp, escmap, nulcmd, nulcmd, nulcmd, nulcmd, 25 /* SPC ! " # $ % & ' */ 26 pgFore, execsh, reMark, pipesh, linend, nulcmd, nulcmd, nulcmd, 27 /* ( ) * + , - . / */ 28 undoPos, redoPos, nulcmd, pgFore, col1L, pgBack, col1R, srchfor, 29 /* 0 1 2 3 4 5 6 7 */ 30 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 31 /* 8 9 : ; < = > ? */ 32 nulcmd, nulcmd, chkURL, chkWORD, shiftl, pginfo, shiftr, ldhelp, 33 /* @ A B C D E F G */ 34 readsh, nulcmd, backBf, nulcmd, ldDL, editBf, rFrame, goLine, 35 /* H I J K L M N O */ 36 ldhelp, followI, lup1, ldown1, linkLst, extbrz, nextMk, nulcmd, 37 /* P Q R S T U V W */ 38 prevMk, quitfm, reload, svBuf, newT, goURL, ldfile, movLW, 39 /* X Y Z [ \ ] ^ _ */ 40 nulcmd, nulcmd, ctrCsrH, topA, vwSrc, lastA, linbeg, nulcmd, 41 /* ` a b c d e f g */ 42 nulcmd, adBmark, pgBack, curURL, svA, nulcmd, nulcmd, goURL, 43 /* h i j k l m n o */ 44 movL, peekIMG, movD, movU, movR, msToggle, srchnxt, ldOpt, 45 /* p q r s t u v w */ 46 svBuf, qquitfm, dispVer, selMn, nulcmd, peekURL, ldBmark, movRW, 47 /* x y z { | } ~ DEL */ 48 nulcmd, nulcmd, ctrCsrV, prevT, pipeBuf, nextT, nulcmd, nulcmd, 49 }; 50 51 unsigned char EscKeymap[128] = { 52 /* C-@ C-a C-b C-c C-d C-e C-f C-g */ 53 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 54 /* C-h C-i C-j C-k C-l C-m C-n C-o */ 55 nulcmd, prevA, svA, nulcmd, nulcmd, svA, nulcmd, nulcmd, 56 /* C-p C-q C-r C-s C-t C-u C-v C-w */ 57 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 58 /* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ 59 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 60 /* SPC ! " # $ % & ' */ 61 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 62 /* ( ) * + , - . / */ 63 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 64 /* 0 1 2 3 4 5 6 7 */ 65 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 66 /* 8 9 : ; < = > ? */ 67 nulcmd, nulcmd, chkNMID, nulcmd, goLineF, nulcmd, goLineL, nulcmd, 68 /* @ A B C D E F G */ 69 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 70 /* H I J K L M N O */ 71 nulcmd, svI, nulcmd, nulcmd, nulcmd, linkbrz, nulcmd, escbmap, 72 /* P Q R S T U V W */ 73 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, dictwordat, 74 /* X Y Z [ \ ] ^ _ */ 75 nulcmd, nulcmd, nulcmd, escbmap, nulcmd, nulcmd, nulcmd, nulcmd, 76 /* ` a b c d e f g */ 77 nulcmd, adBmark, ldBmark, execCmd, nulcmd, editScr, nulcmd, goLine, 78 /* h i j k l m n o */ 79 nulcmd, nulcmd, nulcmd, defKey, listMn, movlistMn, nextMk, setOpt, 80 /* p q r s t u v w */ 81 prevMk, nulcmd, nulcmd, svSrc, tabMn, gorURL, pgBack, dictword, 82 /* x y z { | } ~ DEL */ 83 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 84 }; 85 86 unsigned char EscBKeymap[128] = { 87 /* C-@ C-a C-b C-c C-d C-e C-f C-g */ 88 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 89 /* C-h C-i C-j C-k C-l C-m C-n C-o */ 90 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 91 /* C-p C-q C-r C-s C-t C-u C-v C-w */ 92 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 93 /* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ 94 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 95 /* SPC ! " # $ % & ' */ 96 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 97 /* ( ) * + , - . / */ 98 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 99 /* 0 1 2 3 4 5 6 7 */ 100 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 101 /* 8 9 : ; < = > ? */ 102 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 103 /* @ A B C D E F G */ 104 nulcmd, prevA, nextA, followA, backBf, nulcmd, goLineL, pgFore, 105 /* H I J K L M N O */ 106 goLineF, pgBack, nulcmd, nulcmd, nulcmd, mouse, nulcmd, nulcmd, 107 /* P Q R S T U V W */ 108 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 109 /* X Y Z [ \ ] ^ _ */ 110 nulcmd, nulcmd, prevA, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 111 /* ` a b c d e f g */ 112 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 113 /* h i j k l m n o */ 114 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 115 /* p q r s t u v w */ 116 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 117 /* x y z { | } ~ DEL */ 118 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 119 }; 120 121 unsigned char EscDKeymap[128] = { 122 /* 0 1 INS 3 4 PgUp, PgDn 7 */ 123 nulcmd, goLineF, mainMn, nulcmd, goLineL, pgBack, pgFore, nulcmd, 124 /* 8 9 10 F1 F2 F3 F4 F5 */ 125 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 126 /* 16 F6 F7 F8 F9 F10 22 23 */ 127 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 128 /* 24 25 26 27 HELP 29 30 31 */ 129 nulcmd, nulcmd, nulcmd, nulcmd, mainMn, nulcmd, nulcmd, nulcmd, 130 131 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 132 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 133 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 134 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 135 136 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 137 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 138 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 139 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 140 141 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 142 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 143 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 144 nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, 145 };