summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-10 16:00:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-10 16:00:54 +0000
commitfb5f658f60a97f2d2c8ab474b1d0f062c30fbe33 (patch)
tree3b10cb007d793e866ff2828e78c360bf3933db7b /gpsprof
parent31ca6329c4338f8aaa4fcf3b30b38a132c7c5862 (diff)
downloadgpsd-fb5f658f60a97f2d2c8ab474b1d0f062c30fbe33.tar.gz
Rebuild regressions...
...because the way modes and error estimates are reported has legitimately changed. Also, make gpsfake and gpsprof less noisy when their output is going to a file rather than a tty.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpsprof b/gpsprof
index 3b582c76..635cb839 100755
--- a/gpsprof
+++ b/gpsprof
@@ -10,7 +10,9 @@ class Baton:
"Ship progress indication to stderr."
def __init__(self, prompt, endmsg=None):
self.stream = sys.stderr
- self.stream.write(prompt + "... \010")
+ self.stream.write(prompt + "...")
+ if os.isatty(self.stream.fileno()):
+ self.stream.write(" \010")
self.stream.flush()
self.count = 0
self.endmsg = endmsg
@@ -22,7 +24,7 @@ class Baton:
return
if ch:
self.stream.write(ch)
- else:
+ elif os.isatty(self.stream.fileno()):
self.stream.write("-/|\\"[self.count % 4])
self.stream.write("\010")
self.count = self.count + 1