From e90b40e651d40f2b4e7eb78f72d919dbc4f9f8be Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 7 Oct 2019 13:20:30 +0200 Subject: [PATCH] docs: add a note saying that rebinding ^M or ^I is not advisable Also say that rebinding ^H is sometimes impossible, or when it's made possible, that it rebinds the Backspace key too. This addresses https://savannah.gnu.org/bugs/?56994. Reported-by: Tiago Almeida --- doc/nano.texi | 4 ++++ doc/nanorc.5 | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/nano.texi b/doc/nano.texi index b0ae0180..9a1a1320 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -1171,6 +1171,10 @@ Example: @code{F10}. @code{Ins} or @code{Del}. @end itemize +Rebinding @code{^M} (Enter) or @code{^I} (Tab) is probably not a good idea. +On some terminals it's not possible to rebind @code{^H} (unless @code{--raw} +is used) because its keycode is identical to that of the Backspace key. + @sp 1 Valid names for the @code{function} to be bound are: diff --git a/doc/nanorc.5 b/doc/nanorc.5 index f23e65ae..41584d0e 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -501,6 +501,10 @@ Example: F10. .BR Ins " or " Del . .RE +Rebinding \fB^M\fR (Enter) or \fB^I\fR (Tab) is probably not a good idea. +On some terminals it's not possible to rebind \fB^H\fR (unless \fB\-\-raw\fR +is used) because its keycode is identical to that of the Backspace key. + .TP Valid \fIfunction\fP names to be bound are: .RS 3