more escapes & more compability:

cursor keys are handled in kpress according to the Application Mode (DECPAM).
define & enum were renamed.
tcursor() is now tmovecursor() which is more correct.
tcpos() is now tcursor(), as DECSC is also supposed to save attributes.
capnames are indicated whenever possible.

Currently:
alsamixer looks fine, totally usable.
ncmpc is almost ok.
emacs looks like shit.
This commit is contained in:
Aurélien Aptel
2010-02-08 23:16:55 +01:00
parent fe32c542ec
commit bc4b43be44
2 changed files with 177 additions and 144 deletions

View File

@ -31,10 +31,6 @@ static Key key[] = {
{ XK_End, "\033[4~" },
{ XK_Prior, "\033[5~" },
{ XK_Next, "\033[6~" },
{ XK_Left, "\033[D" },
{ XK_Right, "\033[C" },
{ XK_Up, "\033[A" },
{ XK_Down, "\033[B" },
};
static char gfx[] = {
@ -70,4 +66,5 @@ static char gfx[] = {
['l'] = '+',
['k'] = '+',
['x'] = '|',
[255] = 0,
};