From: Chris Allegretta Date: Sun, 28 Oct 2001 04:29:55 +0000 (+0000) Subject: nano.c:main() - Add Esc-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert) X-Git-Tag: v1.0.6~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ec8ba6b005da3cb795294d973a3841f98570c5c6;p=nano.git nano.c:main() - Add Esc-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert) git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@890 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 2e3e1110..5b80ffc1 100644 --- 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 83c3e659..31fbdc26 100644 --- 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')