input vs. readline

eryk sun eryksun at gmail.com
Fri Jul 8 21:15:06 EDT 2016


On Sat, Jul 9, 2016 at 12:20 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> The escape key erasing input back to the beginning of the line is Command
> Prompt or cmd.exe behavior.

cmd.exe is just a shell that uses the console (if the standard handles
are console handles). The console window is hosted by conhost.exe. It
processes the input buffer for command-line editing, and it maintains
command history and a set of aliases (matching at the start of a line)
for each attached executable (e.g. cmd.exe, powershell.exe, chcp.com,
mode.com, doskey.exe, python.exe, etc). Every Windows process can
attach to a single console window via AllocConsole or AttachConsole,
and detach via FreeConsole.



More information about the Python-list mailing list