chiark / gitweb /
bin/mdw-{editor,pager}: Recognize other Emacs terminal types.
[profile] / bin / mdw-editor
index 312995fb62be3a4ac82ef72582c43a3f83798502..2c7535b58fbd2459c3a21095bf122b4fb739b211 100755 (executable)
@@ -5,7 +5,10 @@ editor=${MDW_EDITOR-ed}
 emacsclient=t
 [ -t 0 -a -t 1 ] || TERM=dumb
 case "$EDITOR,$VISUAL,$TERM" in
-  mdw-editor,mdw-editor,dumb) editor=emacsclient emacsclient=nil;;
+  mdw-editor,mdw-editor,dumb | \
+    mdw-editor,mdw-editor,emacs | \
+    mdw-editor,mdw-editor,eterm*)
+    editor=emacsclient emacsclient=nil;;
   mdw-editor,mdw-editor,*);;
   mdw-editor,*,*) editor=$VISUAL;;
   *,*,*) editor=$EDITOR;;