Commit f4f7e04c authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Work around gnome-terminal, I'm tired of this

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 75ef81bc
Showing with 22 additions and 0 deletions
+22 -0
......@@ -9,6 +9,8 @@ General -
FINALLY! No more keypad_on(), no more individual calls in
main(), do_help(), do_browser(), etc etc etc. Removed call to
timeout(0) in main() (which caused the whole mess), fixes BUG #49.
Added workarounds for gnome-terminal in main() (Alt-O-key and
348-352).
- faq.html:
- Fix typos and small mistakes (Jordi).
- files.c:
......
......@@ -2265,6 +2265,8 @@ int main(int argc, char *argv[])
kbinput = wgetch(edit);
if (kbinput <= 'S' && kbinput >= 'P')
kbinput = KEY_F(kbinput - 79);
else if (kbinput >= 'j' && kbinput <= 'y')
kbinput = kbinput - 64;
#ifdef DEBUG
else {
fprintf(stderr, _("I got Alt-O-%c! (%d)\n"),
......@@ -2458,6 +2460,24 @@ int main(int argc, char *argv[])
case 0: /* Erg */
do_next_word();
break;
/* Stupid gnome-terminal keypad */
case 349:
ungetch('5');
break;
case 348:
ungetch('7');
break;
case 350:
ungetch('9');
break;
case 351:
ungetch('1');
break;
case 352:
ungetch('3');
break;
case 331: /* Stuff that we don't want to do squat */
case -1:
case 410: /* Must ignore this, it gets sent when we resize */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment