mirror of https://github.com/docker/compose.git
Merge pull request #4187 from ijc25/pull-urxvt-corruption
progress_stream: Avoid undefined ANSI escape codes
This commit is contained in:
commit
9bfb855b89
|
@ -32,12 +32,11 @@ def stream_output(output, stream):
|
||||||
if not image_id:
|
if not image_id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if image_id in lines:
|
if image_id not in lines:
|
||||||
diff = len(lines) - lines[image_id]
|
|
||||||
else:
|
|
||||||
lines[image_id] = len(lines)
|
lines[image_id] = len(lines)
|
||||||
stream.write("\n")
|
stream.write("\n")
|
||||||
diff = 0
|
|
||||||
|
diff = len(lines) - lines[image_id]
|
||||||
|
|
||||||
# move cursor up `diff` rows
|
# move cursor up `diff` rows
|
||||||
stream.write("%c[%dA" % (27, diff))
|
stream.write("%c[%dA" % (27, diff))
|
||||||
|
|
Loading…
Reference in New Issue