emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/coterm c2668e2 1/3: Add documentation about TERM and LE


From: ELPA Syncer
Subject: [elpa] externals/coterm c2668e2 1/3: Add documentation about TERM and LESS
Date: Fri, 15 Oct 2021 06:57:12 -0400 (EDT)

branch: externals/coterm
commit c2668e28f42ff0372501850ea60867cbffb0d1c8
Author: Miha Rihtaršič <miha@kamnitnik.top>
Commit: Miha Rihtaršič <miha@kamnitnik.top>

    Add documentation about TERM and LESS
---
 coterm.el | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/coterm.el b/coterm.el
index 8909a85..557f6a3 100644
--- a/coterm.el
+++ b/coterm.el
@@ -82,6 +82,25 @@
 ;; need to manually enable and disable char mode.
 ;;
 ;;
+;; Some common probles:
+;;
+;; If some TUI programs misbehave, try checking your TERM environment variable
+;; with 'echo $TERM' in your coterm enabled M-x shell.  It should normally be
+;; set to "coterm-color".  If if isn't, it might be that one of your shell
+;; initialization files (~/.bashrc) changes it, so check for that and remove
+;; the change.
+;;
+;; The default "less" prompt, when invoked as 'less ~/some/file', is too
+;; generic and isn't recognized by `coterm-auto-char-mode', so char mode isn't
+;; entered automatically.  It is recommended to make your "less" prompt more
+;; complete and recognizable by adding the character "m" or "M" to your LESS
+;; environment variable.  For example, in your ~/.bashrc, add this line:
+;;
+;;   export LESS="FRXm"
+;;
+;; See man page less(1) for more information.
+;;
+;;
 ;; Bugs, suggestions and patches can be sent to
 ;;
 ;;    bugs-doseganje (at) groups.io
@@ -99,7 +118,12 @@
 ;;; Mode functions and configuration
 
 (defcustom coterm-term-name term-term-name
-  "Name to use for TERM."
+  "Name to use for TERM.
+coterm will use this option to set the TERM environment variable
+for the subprocess.  TUI programs usually consult this
+environment variable to decide which escape sequences it should
+send to the terminal.  It is recommended to leave this set to
+\"eterm-color\", the terminal type coterm emulates."
   :group 'comint
   :type 'string)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]