-
-
Notifications
You must be signed in to change notification settings - Fork 252
bpython breaks line with ANSI escape code #670
Copy link
Copy link
Closed
Description
This can be easily reproduced by typing
print('\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[3
1mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[3
1mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m\033[31mOK\033[0m')
I guess when calculating the length of output, bpython counts all chars, but not all chars are visible, thus leading to this bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

