Terry J. Reedy <tjre...@udel.edu> added the comment:

I like the idea, but doubt this can be implemented.  Python assumes a 
least-common-denominator dumb terminal.  Program output is sent on stdout/err 
and displayed read-only.  Used input is read from stdin.  It is put there 
either key by key or after the Enter key is hit.  An input buffer allows 
editing before hitting enter.

'Dumb' means 'No smart escape code to put following output into the user input 
buffer.' Actually, I don't know that there is an ansi codes to do that.  I am 
curious how readline.insert_text works.  (I don't have it on Windows.)

Even if the feature could be made to run on Mac/Linux/Windows10 system consoles 
with custom , there is the issue of supporting other displays, such as IDLE.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37161>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to