This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stanhx
Recipients stanhx, terry.reedy
Date 2020-05-23.16:24:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <831B667D-CC31-4939-A95D-96C1F1816465@hendryxassoc.com>
In-reply-to <1590200964.68.0.124795258512.issue40738@roundup.psfhosted.org>
Content
Hello Terry,

Thank you for your reply. I understand there are different interpretations of \b. IMHO, since IDLE is part of a python distribution, IDLE needs to be consistent with the native python interpreter on each platform. On Mac, IDLE gives
>>> print("deleted\b file")
deleted file

whereas on mac Terminal we get 
>>> print("deleted\b file")
delete file

JetBrains gives another vote for the native interpretation. I’ve been tutoring my grandson on python using JetBrains Academy’s python tutorials. 
They teach 
>>> print("deleted\b file")
delete file

That’s how I discovered the inconsistency.

Thank you,

Stan Hendryx

> On May 22, 2020, at 7:29 PM, Terry J. Reedy <report@bugs.python.org> wrote:
> 
> 
> Terry J. Reedy <tjreedy@udel.edu> added the comment:
> 
> I am considering terminal simulation as an option, but there is not exactly a standard to emulate.  \b originally meant the same as the typewrite backspace and modern US computer keyboard left arrow key <- (move cursor left without erasing), which would result in 'delete filed' in insert mode, but sometimes now is interpreted the same as modern US computer keyboard backspace (erase and move left), as you expect.
> 
> ----------
> resolution:  -> duplicate
> stage:  -> resolved
> status: open -> closed
> superseder:  -> IDLE: Document how Shell displays user code output
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue40738>
> _______________________________________
History
Date User Action Args
2020-05-23 16:24:14stanhxsetrecipients: + stanhx, terry.reedy
2020-05-23 16:24:14stanhxlinkissue40738 messages
2020-05-23 16:24:13stanhxcreate