]> git.wh0rd.org Git - nano.git/commitdiff
nano.c:main() - Add Esc-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert)
authorChris Allegretta <chrisa@asty.org>
Sun, 28 Oct 2001 04:29:55 +0000 (04:29 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 28 Oct 2001 04:29:55 +0000 (04:29 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@890 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
nano.c

index 2e3e111005bb02842ca356cb9f0c030dcd716dcc..5b80ffc1d9666c0944af11a41caf8a7a479624a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ CVS code -
 - nano.c:
   main()
        - Ignore 26 (control-]) (bug discovered by David Lawrence Ramsey)
+       - Add Esc-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert).
 - nano.texi:
        - Backported fix from 1.1 for Mouse Toggle.
 - po/de.po:
diff --git a/nano.c b/nano.c
index 83c3e659693c140671cc8aa162e35077aa719115..31fbdc2669b0ad96055b2ee53ee92998d0304b41 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -2531,10 +2531,16 @@ int main(int argc, char *argv[])
                    kbinput = KEY_PPAGE;
                    wgetch(edit);
                    break;
+               case 'I':       /* Alt-[-I = Page Up - FreeBSD Console */
+                   kbinput = KEY_PPAGE;
+                   break;
                case '6':       /* Alt-[-6 = Page Down */
                    kbinput = KEY_NPAGE;
                    wgetch(edit);
                    break;
+               case 'G':       /* Alt-[-G = Page Down - FreeBSD Console */
+                   kbinput = KEY_NPAGE;
+                   break;
                case '7':
                    kbinput = KEY_HOME;
                    wgetch(edit);
@@ -2543,6 +2549,10 @@ int main(int argc, char *argv[])
                    kbinput = KEY_END;
                    wgetch(edit);
                    break;
+               case 'L':               /* Insert Key - FreeBSD Console */
+                   do_insertfile();
+                   keyhandled = 1;
+                   break;
                case '[':       /* Alt-[-[-[A-E], F1-F5 in linux console */
                    kbinput = wgetch(edit);
                    if (kbinput >= 'A' && kbinput <= 'E')