Author ezio.melotti
Recipients ezio.melotti, mic_e
Date 2013-03-02.15:43:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362238993.06.0.985256095481.issue17337@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-03-02 15:43:13ezio.melottisetrecipients: + ezio.melotti, mic_e
2013-03-02 15:43:13ezio.melottisetmessageid: <1362238993.06.0.985256095481.issue17337@psf.upfronthosting.co.za>
2013-03-02 15:43:13ezio.melottilinkissue17337 messages
2013-03-02 15:43:12ezio.melotticreate