Fix Backspace and Delete characters
Backspace key must generate the backspace character (\010) and Delete key must generate the delete character (\0177). In some systems the kernel configuration for erasing previous character is \0177, so some programs (for example cat, ed, mail, ...), can not understand the correct meaning of backspace. In this cases it is only needed this command: stty erasemaster
parent
0baf2d8be5
commit
c46d929fe1
|
@ -192,7 +192,6 @@ static Key key[] = {
|
||||||
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
|
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
|
||||||
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0, 0},
|
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0, 0},
|
||||||
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0, 0},
|
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0, 0},
|
||||||
{ XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
|
|
||||||
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
|
||||||
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0, 0},
|
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0, 0},
|
||||||
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0, 0},
|
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0, 0},
|
||||||
|
@ -212,7 +211,6 @@ static Key key[] = {
|
||||||
{ XK_KP_7, XK_ANY_MOD, "\033Ow", +2, 0, 0},
|
{ XK_KP_7, XK_ANY_MOD, "\033Ow", +2, 0, 0},
|
||||||
{ XK_KP_8, XK_ANY_MOD, "\033Ox", +2, 0, 0},
|
{ XK_KP_8, XK_ANY_MOD, "\033Ox", +2, 0, 0},
|
||||||
{ XK_KP_9, XK_ANY_MOD, "\033Oy", +2, 0, 0},
|
{ XK_KP_9, XK_ANY_MOD, "\033Oy", +2, 0, 0},
|
||||||
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0, 0},
|
|
||||||
{ XK_Up, ShiftMask, "\033[1;2A", 0, 0, 0},
|
{ XK_Up, ShiftMask, "\033[1;2A", 0, 0, 0},
|
||||||
{ XK_Up, ControlMask, "\033[1;5A", 0, 0, 0},
|
{ XK_Up, ControlMask, "\033[1;5A", 0, 0, 0},
|
||||||
{ XK_Up, Mod1Mask, "\033[1;3A", 0, 0, 0},
|
{ XK_Up, Mod1Mask, "\033[1;3A", 0, 0, 0},
|
||||||
|
@ -248,7 +246,6 @@ static Key key[] = {
|
||||||
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
|
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
|
||||||
{ XK_Delete, ShiftMask, "\033[2K", -1, 0, 0},
|
{ XK_Delete, ShiftMask, "\033[2K", -1, 0, 0},
|
||||||
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0, 0},
|
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0, 0},
|
||||||
{ XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
|
|
||||||
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
|
||||||
{ XK_Home, ShiftMask, "\033[2J", 0, -1, 0},
|
{ XK_Home, ShiftMask, "\033[2J", 0, -1, 0},
|
||||||
{ XK_Home, ShiftMask, "\033[1;2H", 0, +1, 0},
|
{ XK_Home, ShiftMask, "\033[1;2H", 0, +1, 0},
|
||||||
|
|
Reference in New Issue