commit - bfd29c14af1f765b1c028d2ae10835a185fc5bf5
commit + 3f66a33e9b5c3d8a1c5a4fa8a0c749397ca6f5b8
blob - b52162bc2e5a1d8081c9ed272cf33facc11e821f
blob + add39407a85216e99bb0169c122aceb4678155dd
--- keymap.c
+++ keymap.c
/* ... */
{ "del", KEY_BACKSPACE },
{ "backspace", 127 },
- { "esc", 27 },
+ { "esc", '\e' },
{ "space", ' ' },
{ "spc", ' ' },
{ "enter", CTRL('m') },
blob - d3daf6676325507906928c647dd44905b605dc83
blob + e5e0361f33bc5c78ca6c96f2a7782d4aabcee71d
--- ui.c
+++ ui.c
if ((thiskey.key = wgetch(body)) == ERR)
return 0;
- thiskey.meta = thiskey.key == 27;
+ thiskey.meta = thiskey.key == '\e';
if (thiskey.meta) {
thiskey.key = wgetch(body);
- if (thiskey.key == ERR || thiskey.key == 27) {
+ if (thiskey.key == ERR || thiskey.key == '\e') {
thiskey.meta = 0;
- thiskey.key = 27;
+ thiskey.key = '\e';
}
}