diff options
Diffstat (limited to '')
-rw-r--r-- | keybind_lynx.c | 146 |
1 files changed, 71 insertions, 75 deletions
diff --git a/keybind_lynx.c b/keybind_lynx.c index 4597a35..415030e 100644 --- a/keybind_lynx.c +++ b/keybind_lynx.c @@ -1,4 +1,4 @@ -/* $Id: keybind_lynx.c,v 1.3 2001/11/20 17:49:23 ukai Exp $ */ +/* $Id: keybind_lynx.c,v 1.4 2001/11/24 02:01:26 ukai Exp $ */ /* * Lynx-like key binding. * @@ -13,123 +13,119 @@ #include "funcname2.h" -char GlobalKeymap[128] = -{ -/* C-@ C-a C-b C-c C-d C-e C-f C-g */ - _mark, goLineF,backBf, nulcmd, nulcmd, goLineL,followA,curlno, -/* C-h C-i C-j C-k C-l C-m C-n C-o */ +char GlobalKeymap[128] = { + /* C-@ C-a C-b C-c C-d C-e C-f C-g */ + _mark, goLineF, backBf, nulcmd, nulcmd, goLineL, followA, curlno, + /* C-h C-i C-j C-k C-l C-m C-n C-o */ ldHist, nextA, followA, cooLst, rdrwSc, followA, nextA, nulcmd, -/* C-p C-q C-r C-s C-t C-u C-v C-w */ + /* C-p C-q C-r C-s C-t C-u C-v C-w */ prevA, nulcmd, reload, srchfor, nulcmd, nulcmd, pgFore, rdrwSc, -/* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ - nulcmd, nulcmd, susp, escmap, nulcmd, nulcmd, nulcmd, nulcmd, -/* SPC ! " # $ % & ' */ + /* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ + nulcmd, nulcmd, susp, escmap, nulcmd, nulcmd, nulcmd, nulcmd, + /* SPC ! " # $ % & ' */ pgFore, execsh, reMark, pipesh, linend, nulcmd, nulcmd, nulcmd, -/* ( ) * + , - . / */ + /* ( ) * + , - . / */ nulcmd, nulcmd, nulcmd, pgFore, nulcmd, pgBack, nulcmd, srchfor, -/* 0 1 2 3 4 5 6 7 */ + /* 0 1 2 3 4 5 6 7 */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 8 9 : ; < = > ? */ + /* 8 9 : ; < = > ? */ nulcmd, nulcmd, chkURL, nulcmd, shiftl, pginfo, shiftr, ldhelp, -/* @ A B C D E F G */ + /* @ A B C D E F G */ readsh, nulcmd, backBf, nulcmd, nulcmd, editBf, rFrame, goLine, -/* H I J K L M N O */ - ldhelp, followI,lup1, ldown1, nulcmd, extbrz, nextMk, nulcmd, -/* P Q R S T U V W */ - prevMk, quitfm, reload, svBuf, nulcmd, goURL, ldfile, nulcmd, -/* X Y Z [ \ ] ^ _ */ + /* H I J K L M N O */ + ldhelp, followI, lup1, ldown1, nulcmd, extbrz, nextMk, nulcmd, + /* P Q R S T U V W */ + prevMk, quitfm, reload, svBuf, nulcmd, goURL, ldfile, nulcmd, + /* X Y Z [ \ ] ^ _ */ nulcmd, nulcmd, ctrCsrH, nulcmd, vwSrc, nulcmd, linbeg, nulcmd, -/* ` a b c d e f g */ - nulcmd, adBmark,pgBack, curURL, svA, nulcmd, nulcmd, goURL, -/* h i j k l m n o */ - movL, peekIMG,movD, movU, movR, nulcmd, srchnxt,ldOpt, -/* p q r s t u v w */ - svBuf, qquitfm,nulcmd, selMn, nulcmd, peekURL,ldBmark,wrapToggle, -/* x y z { | } ~ DEL */ - nulcmd, nulcmd, ctrCsrV,nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, + /* ` a b c d e f g */ + nulcmd, adBmark, pgBack, curURL, svA, nulcmd, nulcmd, goURL, + /* h i j k l m n o */ + movL, peekIMG, movD, movU, movR, nulcmd, srchnxt, ldOpt, + /* p q r s t u v w */ + svBuf, qquitfm, nulcmd, selMn, nulcmd, peekURL, ldBmark, wrapToggle, + /* x y z { | } ~ DEL */ + nulcmd, nulcmd, ctrCsrV, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, }; -char EscKeymap[128] = -{ -/* C-@ C-a C-b C-c C-d C-e C-f C-g */ +char EscKeymap[128] = { + /* C-@ C-a C-b C-c C-d C-e C-f C-g */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* C-h C-i C-j C-k C-l C-m C-n C-o */ - nulcmd, prevA, svA, nulcmd, nulcmd, svA, nulcmd, nulcmd, -/* C-p C-q C-r C-s C-t C-u C-v C-w */ + /* C-h C-i C-j C-k C-l C-m C-n C-o */ + nulcmd, prevA, svA, nulcmd, nulcmd, svA, nulcmd, nulcmd, + /* C-p C-q C-r C-s C-t C-u C-v C-w */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ + /* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* SPC ! " # $ % & ' */ + /* SPC ! " # $ % & ' */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* ( ) * + , - . / */ + /* ( ) * + , - . / */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 0 1 2 3 4 5 6 7 */ + /* 0 1 2 3 4 5 6 7 */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 8 9 : ; < = > ? */ + /* 8 9 : ; < = > ? */ nulcmd, nulcmd, chkNMID, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* @ A B C D E F G */ + /* @ A B C D E F G */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* H I J K L M N O */ - nulcmd, svI, nulcmd, nulcmd, nulcmd, linkbrz,nulcmd, escbmap, -/* P Q R S T U V W */ + /* H I J K L M N O */ + nulcmd, svI, nulcmd, nulcmd, nulcmd, linkbrz, nulcmd, escbmap, + /* P Q R S T U V W */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* X Y Z [ \ ] ^ _ */ - nulcmd, nulcmd, nulcmd, escbmap,nulcmd, nulcmd, nulcmd, nulcmd, -/* ` a b c d e f g */ - nulcmd, adBmark,ldBmark,nulcmd, nulcmd, editScr,nulcmd, nulcmd, -/* h i j k l m n o */ + /* X Y Z [ \ ] ^ _ */ + nulcmd, nulcmd, nulcmd, escbmap, nulcmd, nulcmd, nulcmd, nulcmd, + /* ` a b c d e f g */ + nulcmd, adBmark, ldBmark, nulcmd, nulcmd, editScr, nulcmd, nulcmd, + /* h i j k l m n o */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* p q r s t u v w */ - nulcmd, nulcmd, nulcmd, svSrc, nulcmd, nulcmd, pgBack, nulcmd, -/* x y z { | } ~ DEL */ + /* p q r s t u v w */ + nulcmd, nulcmd, nulcmd, svSrc, nulcmd, nulcmd, pgBack, nulcmd, + /* x y z { | } ~ DEL */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, }; -char EscBKeymap[128] = -{ -/* C-@ C-a C-b C-c C-d C-e C-f C-g */ +char EscBKeymap[128] = { + /* C-@ C-a C-b C-c C-d C-e C-f C-g */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* C-h C-i C-j C-k C-l C-m C-n C-o */ + /* C-h C-i C-j C-k C-l C-m C-n C-o */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* C-p C-q C-r C-s C-t C-u C-v C-w */ + /* C-p C-q C-r C-s C-t C-u C-v C-w */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ + /* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* SPC ! " # $ % & ' */ + /* SPC ! " # $ % & ' */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* ( ) * + , - . / */ + /* ( ) * + , - . / */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 0 1 2 3 4 5 6 7 */ + /* 0 1 2 3 4 5 6 7 */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 8 9 : ; < = > ? */ + /* 8 9 : ; < = > ? */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* @ A B C D E F G */ + /* @ A B C D E F G */ nulcmd, prevA, nextA, followA, backBf, nulcmd, nulcmd, nulcmd, -/* H I J K L M N O */ + /* H I J K L M N O */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, mouse, nulcmd, nulcmd, -/* P Q R S T U V W */ + /* P Q R S T U V W */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* X Y Z [ \ ] ^ _ */ + /* X Y Z [ \ ] ^ _ */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* ` a b c d e f g */ + /* ` a b c d e f g */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* h i j k l m n o */ + /* h i j k l m n o */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* p q r s t u v w */ + /* p q r s t u v w */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* x y z { | } ~ DEL */ + /* x y z { | } ~ DEL */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, }; -char EscDKeymap[128] = -{ -/* 0 1 INS 3 4 PgUp, PgDn 7 */ - nulcmd, goLineF,mainMn, nulcmd, goLineL,pgBack, pgFore, nulcmd, -/* 8 9 10 F1 F2 F3 F4 F5 */ +char EscDKeymap[128] = { + /* 0 1 INS 3 4 PgUp, PgDn 7 */ + nulcmd, goLineF, mainMn, nulcmd, goLineL, pgBack, pgFore, nulcmd, + /* 8 9 10 F1 F2 F3 F4 F5 */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 16 F6 F7 F8 F9 F10 22 23 */ + /* 16 F6 F7 F8 F9 F10 22 23 */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, -/* 24 25 26 27 HELP 29 30 31 */ + /* 24 25 26 27 HELP 29 30 31 */ nulcmd, nulcmd, nulcmd, nulcmd, mainMn, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, |