From 6747ef213e617d184834aa7add626220580d78dc Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 3 Mar 2003 08:05:49 +0000 Subject: [PATCH] * lib/mc.lib: Add xterm arrows both for application and normal mode. Normal mode can be accidentally enabled if one mc is run from another and Ctrl-O is used to switch between them. Add F11-F20 definitions for cons25 (FreeBSD console). --- ChangeLog | 7 +++++++ lib/mc.lib | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index ebffbcf1b..9b22338fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-03-03 Pavel Roskin + + * lib/mc.lib: Add xterm arrows both for application and normal + mode. Normal mode can be accidentally enabled if one mc is run + from another and Ctrl-O is used to switch between them. + Add F11-F20 definitions for cons25 (FreeBSD console). + 2003-02-27 Juan C. Olivares * syntax/cs.syntax: New file. diff --git a/lib/mc.lib b/lib/mc.lib index f7796f29f..21895c2e5 100644 --- a/lib/mc.lib +++ b/lib/mc.lib @@ -105,6 +105,16 @@ f18=\e[19;2~ f19=\e[20;2~ f20=\e[21;2~ +# Arrows for both keypad modes (application and normal). +up=\e[A +up=\eOA +down=\e[B +down=\eOB +right=\e[C +right=\eOC +left=\e[D +left=\eOD + [terminal:xterm-color] insert=\e[2~ f11=\e[23~ @@ -155,3 +165,15 @@ end=\e[F kpplus=\e[+ kpminus=\e[- kpasterix=\e[* + +[terminal:cons25] +f11=\e[Y +f12=\e[Z +f13=\e[a +f14=\e[b +f15=\e[c +f16=\e[d +f17=\e[e +f18=\e[f +f19=\e[g +f20=\e[h