Open
Description
bpython prints lines differently than python when ANSI escape codes are involved.
I was able to reproduce the bug with the following setups:
- bpython version 0.17.1 on top of Python 2.7.10, macOS
- bpython version 0.17.1 on top of Python 3.7.0, macOS
- bpython version 0.17.1 on top of Python 3.7.1, linux (docker)
Reproduction code:
import os
width = int(os.popen('stty size', 'r').read().split()[1])
print('\33[31m' + ('#' * width) + '\33[0m')
The code suppose to fill up a full width terminal line with red hashes.
In python it works as expected. In bpython the line breaks toward the end and it goes back to the regular color at the second line.