diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-10 16:00:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-10 16:00:54 +0000 |
commit | fb5f658f60a97f2d2c8ab474b1d0f062c30fbe33 (patch) | |
tree | 3b10cb007d793e866ff2828e78c360bf3933db7b /gpsprof | |
parent | 31ca6329c4338f8aaa4fcf3b30b38a132c7c5862 (diff) | |
download | gpsd-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-x | gpsprof | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |