From 74b74a46de19f7630694646307cfd4dbd5552ea3 Mon Sep 17 00:00:00 2001 From: Ben Murphy Date: Tue, 9 Aug 2016 15:46:07 +0100 Subject: ensure an appropriate TERM var is set useful if deploying erlang nodes via capistrano when TERM is not set correctly attaching to the node will result in weirdness --- priv/templates/extended_bin | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'priv') diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 2630bbf..06c7242 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -13,6 +13,10 @@ set -e RUN_ERL_DISABLE_FLOWCNTRL=${RUN_ERL_DISABLE_FLOWCNTRL:-true} export $RUN_ERL_DISABLE_FLOWCNTRL +if [ "$TERM" = "dumb" -o -z "$TERM" ]; then + export TERM=screen +fi + SCRIPT=$(readlink $0 || true) if [ -z $SCRIPT ]; then SCRIPT=$0 -- cgit v1.2.3