Terry J. Reedy added the comment:
I closed #24572 as a duplicate of this. It is the same issue except for
printing \r instead of \b. These issues are not about responses to keyboard
actions when entering text into an Idle editor window. During entry, just
about any
Serhiy Storchaka added the comment:
Control characters are named control characters because they are control the
output device. Different devices have different capabilities and reacts
different on the same codes. Windows console, different sorts of Linux
terminals and Tk text widget are
Terry J. Reedy added the comment:
Going back to msdos, there are graphic chars for all 256 bytes, including may
single and double line box-drawing chars. Many In Idle, I see 5 solid white
circles. In FireFox, there are 5 empty circles (on dark background, which are
chr(9689). When I copy
Carol Willing added the comment:
Ned, Thanks for the detailed example and confirming my gut instinct that Tk was
the root cause of the differences seen between the IDLE's Python interactive
shell (https://docs.python.org/3.4/library/idle.html) and the interactive
interpreter invoked from the
Al Sweigart added the comment:
For clarification, this happens on Windows 7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
New submission from Al Sweigart:
IDLE cannot display the \b backspace character correctly. From IDLE's
interactive shell:
print('hello\b\b\b\b\bHELLO')
hello◙HELLO
Whereas from cmd:
print('hello\b\b\b\b\bHELLO')
HELLO
--
messages: 233828
nosy: Al.Sweigart
priority:
Changes by Al Sweigart asweig...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list
Carol Willing added the comment:
FWIW: On Mac OS X 10.9.5 using Python 3.4.2, IDLE's interactive shell (started
from the IDLE.app icon):
print('hello\b\b\b\b\bHELLO')
helloHELLO
From the command line using python3 interactive shell:
print('hello\b\b\b\b\bHELLO')
HELLO
Both return a class
Martin Panter added the comment:
As far as I understand, Idle doesn’t interpret any terminal control codes apart
from a plain \n for a new line. I know it doesn’t do a carriage return for \r
either.
--
components: +IDLE
nosy: +vadmium
___
Python
Ned Deily added the comment:
It's helpful to keep in mind that IDLE is a Tk application written in Python
and, as such, depends on Tk to do nearly everything associated with writing to
displays and reading from keyboards and pointing devices. If you try
outputting the same string using the
10 matches
Mail list logo