Avery Pennarun
f6ea1fd76b
log.py, minimal/do: don't use ansi colour codes if $TERM is blank or 'dumb'
...
Apparently emacs sets TERM=dumb in its tty simulator, so even though
isatty() returns true, we shouldn't use colour codes. (emacs is therefore
lame. But we knew that.)
2011-01-04 14:11:29 -08:00
Tim Allen
cb1512b14b
Use named constants for terminal control codes.
...
(apenwarr slightly changed the minimal/do tty detection.)
2011-01-04 14:10:20 -08:00
Avery Pennarun
e18fa85d58
The only thing in helpers.py that needed vars.py was the log stuff.
...
So put it in its own file. Now it's safer to import and use helpers even if
you can't safely touch vars.
2010-12-11 18:34:02 -08:00
Avery Pennarun
fc27b19108
Merge libdo.py and log.py into helpers.py.
2010-11-13 00:53:55 -08:00
Avery Pennarun
63c596ac61
Move log stuff into a separate log.py.
2010-11-13 00:11:34 -08:00