Message183325
I can reproduce the issue, but only from the interactive interpreter while using input() directly (Linux/py3).
I tried the following things:
$ ./python -c 'print("\x1b[31;1mthis is a bold red prompt> \x1b[m", end=""); input()'
$ ./python -c 'input("\x1b[31;1mthis is a bold red prompt> \x1b[m");'
>>> print("\x1b[31;1mthis is a bold red prompt> \x1b[m", end=""); input()
>>> input("\x1b[31;1mthis is a bold red prompt> \x1b[m")
In the first 3 cases once I reach the end of the line, the text went on a new line. In the last case it started writing over the prompt instead of going on a newline, and once it reached the end of line again it went on a newline correctly. |
|
Date |
User |
Action |
Args |
2013-03-02 15:43:13 | ezio.melotti | set | recipients:
+ ezio.melotti, mic_e |
2013-03-02 15:43:13 | ezio.melotti | set | messageid: <1362238993.06.0.985256095481.issue17337@psf.upfronthosting.co.za> |
2013-03-02 15:43:13 | ezio.melotti | link | issue17337 messages |
2013-03-02 15:43:12 | ezio.melotti | create | |
|