summaryrefslogtreecommitdiff
path: root/doc/emacs/misc.texi
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2021-10-28 18:44:39 +0200
committerMichael Albinus <michael.albinus@gmx.de>2021-10-28 18:44:39 +0200
commit9c95a4fa55a4b6956a16dee9144a68db571d7e2c (patch)
tree192f499f1430de17fa7ee4216414c46212ea4135 /doc/emacs/misc.texi
parent802e9b1b453506174c94f72c504fb4b83e85828e (diff)
downloademacs-9c95a4fa55a4b6956a16dee9144a68db571d7e2c.tar.gz
emacs-9c95a4fa55a4b6956a16dee9144a68db571d7e2c.tar.bz2
emacs-9c95a4fa55a4b6956a16dee9144a68db571d7e2c.zip
Make comint-term-environment connection-aware (bug#51426)
* lisp/comint.el (comint-term-environment): Make it connection-aware. * doc/emacs/misc.texi (Shell Options): Document the above change, and explain how this interacts with 'system-uses-terminfo'. * etc/NEWS: Announce the above change.
Diffstat (limited to 'doc/emacs/misc.texi')
-rw-r--r--doc/emacs/misc.texi12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 5123a716dcb..f66b69cdd73 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -1497,14 +1497,20 @@ directory stack if they are not already on it
underlying shell, of course.
@vindex comint-terminfo-terminal
+@vindex system-uses-terminfo
@vindex TERM@r{, environment variable, in sub-shell}
Comint mode sets the @env{TERM} environment variable to a safe default
value, but this value disables some useful features. For example,
color is disabled in applications that use @env{TERM} to determine if
color is supported. Therefore, Emacs provides an option
-@code{comint-terminfo-terminal}, which you can set to a terminal that
-is present in your system's terminfo database, in order to take
-advantage of advanced features of that terminal.
+@code{comint-terminfo-terminal} to let you choose a terminal with more
+advanced features, as defined in your system's terminfo database.
+Emacs will use this option as the value for @env{TERM} so long as
+@code{system-uses-terminfo} is non-nil.
+
+Both @code{comint-terminfo-terminal} and @code{system-uses-terminfo}
+can be declared as connection-local variables to adjust these options
+to match what a remote system expects (@pxref{Connection Variables}).
@node Terminal emulator
@subsection Emacs Terminal Emulator