[issue40738] backspace character \b not processed by IDLE

2020-05-23 Thread Stan Hendryx

Stan Hendryx  added the comment:

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  wrote:
> 
> 
> Terry J. Reedy  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 
> <https://bugs.python.org/issue40738>
> ___

--

___
Python tracker 
<https://bugs.python.org/issue40738>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40738] backspace character \b not processed by IDLE

2020-05-22 Thread Stan Hendryx


New submission from Stan Hendryx :

The backspace character \b is not processed correctly in IDLE 3.8.2:
>>> print("deleted\b file")
deleted file

Running the interpreter from Terminal, it works:
>>> print("deleted\b file")
delete file

Same result on two systems: MacBook Pro, one on OSX 10.14.6 and another on 
10.13.6.

--
assignee: terry.reedy
components: IDLE
messages: 369685
nosy: stanhx, terry.reedy
priority: normal
severity: normal
status: open
title: backspace character \b not processed by IDLE
type: behavior
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue40738>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com