Never refresh when stdout is not a TTY.

This fixes #43.
main
Vincent Driessen 13 years ago
parent 59aebf8676
commit b0c9ab168d

@ -148,10 +148,10 @@ def parse_args():
def interval(val, func, args):
while True:
if val:
if val and sys.stdout.isatty():
os.system('clear')
func(args)
if val:
if val and sys.stdout.isatty():
time.sleep(val)
else:
break

Loading…
Cancel
Save