ASCII只有定義128個鍵, 而一個”char”有一個byte=8 bit的定義空間.
比如說, 你需要在程式裡補捉”Ctrl-Space”, “Ctrl-Shift”…等.
結果到最後才發現, 我想要改的程式裡, 已經作好了相關的部份.
所以, 在作任何事之前, 一定要先完全了解整個相關的程式碼.
ASCII defines only 128 elements, and a “char” has 1 byte= 8 bit.
There are another 128 entry that can be defined by programmers.
If your programs need to catch some keyevent such as “Ctrl-Space” , “Ctrl-Shift”,…etc,you can properly extend the keymap, and avoid these lowlevel keycodes handling.
Relative information can be obtained by “man keymaps”.
are often included.
Some programs like iterm, zhcon,…etc, also have excellent codes about it.
I am not familiar to this before, so I spent lot of time on it.
But I finally find the program which I want to improve has implemented it~~
So, always be sure to completely understand what you are going to do first,
and start to do it.