From 0c845d0bb471061ec83a85fd15098fd13cb20fe2 Mon Sep 17 00:00:00 2001 From: bernat Date: Mon, 29 Nov 2004 15:46:01 +0100 Subject: [PATCH] Broutille darcs-hash:20041129144601-d1718-8e04296699729dfa6ee2645880cda0e1fd5d2a2f.gz --- gestion/affich_tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gestion/affich_tools.py b/gestion/affich_tools.py index 6d792037..8e44cfbc 100755 --- a/gestion/affich_tools.py +++ b/gestion/affich_tools.py @@ -9,7 +9,10 @@ Licence : GPLv2 import sys, sre, os, tempfile -el = os.popen('tput cr ; tput el').read() +if 'TERM' in os.environ: + el = os.popen('tput cr ; tput el').read() +else: + el = os.popen('tput -Tvt100 cr ; tput -Tvt100 el').read() def dialog(backtitle,arg) : """ Affiche la boite de dialogue défine avec les arguments fournis