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