mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-26 03:02:08 +03:00
nano.c:main() - Add Esc-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@890 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
7b409bd6b6
commit
7bf7274d9f
@ -1,4 +1,7 @@
|
|||||||
CVS Code -
|
CVS Code -
|
||||||
|
- nano.c:
|
||||||
|
main()
|
||||||
|
- Add Esc-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert).
|
||||||
|
|
||||||
nano-1.1.3 - 10/26/2001
|
nano-1.1.3 - 10/26/2001
|
||||||
- General
|
- General
|
||||||
|
14
nano.c
14
nano.c
@ -3027,10 +3027,16 @@ int main(int argc, char *argv[])
|
|||||||
kbinput = KEY_PPAGE;
|
kbinput = KEY_PPAGE;
|
||||||
wgetch(edit);
|
wgetch(edit);
|
||||||
break;
|
break;
|
||||||
|
case 'I': /* Alt-[-I = Page Up - FreeBSD Console */
|
||||||
|
kbinput = KEY_PPAGE;
|
||||||
|
break;
|
||||||
case '6': /* Alt-[-6 = Page Down */
|
case '6': /* Alt-[-6 = Page Down */
|
||||||
kbinput = KEY_NPAGE;
|
kbinput = KEY_NPAGE;
|
||||||
wgetch(edit);
|
wgetch(edit);
|
||||||
break;
|
break;
|
||||||
|
case 'G': /* Alt-[-G = Page Down - FreeBSD Console */
|
||||||
|
kbinput = KEY_NPAGE;
|
||||||
|
break;
|
||||||
case '7':
|
case '7':
|
||||||
kbinput = KEY_HOME;
|
kbinput = KEY_HOME;
|
||||||
wgetch(edit);
|
wgetch(edit);
|
||||||
@ -3039,6 +3045,14 @@ int main(int argc, char *argv[])
|
|||||||
kbinput = KEY_END;
|
kbinput = KEY_END;
|
||||||
wgetch(edit);
|
wgetch(edit);
|
||||||
break;
|
break;
|
||||||
|
case 'L': /* Insert Key - FreeBSD Console */
|
||||||
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
|
do_insertfile(ISSET(MULTIBUFFER));
|
||||||
|
#else
|
||||||
|
do_insertfile(0);
|
||||||
|
#endif
|
||||||
|
keyhandled = 1;
|
||||||
|
break;
|
||||||
case '[': /* Alt-[-[-[A-E], F1-F5 in linux console */
|
case '[': /* Alt-[-[-[A-E], F1-F5 in linux console */
|
||||||
kbinput = wgetch(edit);
|
kbinput = wgetch(edit);
|
||||||
if (kbinput >= 'A' && kbinput <= 'E')
|
if (kbinput >= 'A' && kbinput <= 'E')
|
||||||
|
Loading…
Reference in New Issue
Block a user