X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/e04c4857c4c68005c13413a3e89abcbfdd81760c..7ee12623c736a6c2202b1268086c1bb2288a3b9c:/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,*);;