X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/e04c4857c4c68005c13413a3e89abcbfdd81760c..56c3a7e735236be7ff43f95fe1a001f5245cdd81:/mdw-editor diff --git a/mdw-editor b/mdw-editor index cca7310..a58ee95 100755 --- a/mdw-editor +++ b/mdw-editor @@ -2,6 +2,7 @@ set -e editor=${MDW_EDITOR-ed} +[ -t 0 -a -t 1 ] || TERM=dumb case "$EDITOR,$VISUAL,$TERM" in mdw-editor,mdw-editor,dumb) editor=gnuclient;; mdw-editor,mdw-editor,*);;