diff --git a/pupy/pupylib/PupyCmd.py b/pupy/pupylib/PupyCmd.py index 7b9ee159..9fe1291e 100644 --- a/pupy/pupylib/PupyCmd.py +++ b/pupy/pupylib/PupyCmd.py @@ -87,10 +87,14 @@ def get_columns_size(l): for i,k in d.iteritems(): if type(k) is not str: k=str(k) + + escalign=len(''.join(re.findall('(\033[^m]+m)', k))) + l = len(k) - escalign + if not i in size_dic: - size_dic[i]=len(k) - elif size_dic[i]