diff --git a/gestion/affich_tools.py b/gestion/affich_tools.py index 90ff0210..2805983e 100755 --- a/gestion/affich_tools.py +++ b/gestion/affich_tools.py @@ -9,7 +9,7 @@ Licence : GPLv2 import sys, sre, os, tempfile -if 'TERM' in os.environ: +if 'TERM' in os.environ and os.environ['TERM'] != 'unknown': el = os.popen('tput cr ; tput el').read() else: el = os.popen('tput -Tvt100 cr ; tput -Tvt100 el').read()