ref: e4ef7a58376951b392786e9a7cc38e32b7d9cdc6
dir: /9legacy/keyboard_h.diff/
--- /n/dump/2021/0627//sys/include/keyboard.h Thu Nov 10 16:48:16 2005 +++ /sys/include/keyboard.h Mon Jul 12 15:41:12 2021 @@ -22,25 +22,45 @@ enum { KF= 0xF000, /* Rune: beginning of private Unicode space */ Spec= 0xF800, + PF= Spec|0x20, /* num pad function key */ + Kview= Spec|0x00, /* view (shift window up) */ /* KF|1, KF|2, ..., KF|0xC is F1, F2, ..., F12 */ Khome= KF|0x0D, Kup= KF|0x0E, + Kdown= Kview, Kpgup= KF|0x0F, Kprint= KF|0x10, Kleft= KF|0x11, Kright= KF|0x12, - Kdown= Spec|0x00, - Kview= Spec|0x00, Kpgdown= KF|0x13, Kins= KF|0x14, - Kend= KF|0x18, - Kalt= KF|0x15, + Kalt= KF|0x15, Kshift= KF|0x16, - Kctl= KF|0x17, + Kctl= KF|0x17, + + Kend= KF|0x18, + Kscroll= KF|0x19, + Kscrolloneup= KF|0x20, + Kscrollonedown= KF|0x21, + Ksoh= 0x01, + Kstx= 0x02, + Ketx= 0x03, + Keof= 0x04, + Kenq= 0x05, + Kack= 0x06, Kbs= 0x08, + Knack= 0x15, + Ketb= 0x17, Kdel= 0x7f, Kesc= 0x1b, - Keof= 0x04, + + Kbreak= Spec|0x61, + Kcaps= Spec|0x64, + Knum= Spec|0x65, + Kmiddle= Spec|0x66, + Kaltgr= Spec|0x67, + Kmod4= Spec|0x68, + Kmouse= Spec|0x100, }; --- sys/src/cmd/abaco/dat.h Wed Jul 29 17:23:32 2009 +++ /sys/src/cmd/abaco/dat.h Wed Jul 14 01:53:01 2021 @@ -344,12 +344,6 @@ char *charset; int procstderr; -enum -{ - Kscrolloneup = KF|0x20, - Kscrollonedown = KF|0x21, -}; - Channel *cplumb; /* chan(Plumbmsg*) */ Channel *cexit; /* chan(int) */ Channel *crefresh; /* chan(page *) */ --- sys/src/cmd/acme/dat.h Mon Jun 28 14:17:37 2021 +++ /sys/src/cmd/acme/dat.h Wed Jul 14 01:58:53 2021 @@ -533,12 +533,6 @@ int messagesize; /* negotiated in 9P version setup */ int globalautoindent; -enum -{ - Kscrolloneup = KF|0x20, - Kscrollonedown = KF|0x21, -}; - Channel *cplumb; /* chan(Plumbmsg*) */ Channel *cwait; /* chan(Waitmsg) */ Channel *ccommand; /* chan(Command*) */ --- sys/src/cmd/rio/dat.h Sun Oct 17 01:43:59 2004 +++ /sys/src/cmd/rio/dat.h Wed Jul 14 02:15:57 2021 @@ -22,12 +22,6 @@ QMAX, }; -enum -{ - Kscrolloneup = KF|0x20, - Kscrollonedown = KF|0x21, -}; - #define STACK 8192 typedef struct Consreadmesg Consreadmesg;