[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2022-02-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2022-02-25 Thread Eryk Sun
Eryk Sun added the comment: > I have an idea to solve it. But I don't know how to get the > clipboard data. In Windows, using the window manager entails extending the process and the current thread with GUI-related structures in the kernel and then connecting the process to a window

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2022-02-25 Thread Eryk Sun
Eryk Sun added the comment: > Clicking `Edit > Paste` from the window menu > Use right-click to paste In particular, if the console has quick-edit mode enabled, then you can paste text by right-clicking. Also, if text is selected in quick-edit mode, right-clicking copies to the clipboard.

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2022-02-25 Thread 钟旭尧
钟旭尧 added the comment: I have an idea to solve it. But I don't know how to get the clipboard data. The code like this (Windows): def win_getpass(prompt='Password: ', stream=None, echoChar='*'): """Prompt for password with echo off, using Windows getwch().""" if not

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2020-08-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2020-08-23 Thread Brian Rutledge
Brian Rutledge added the comment: In addition to Ctrl+V, Shift+Insert also doesn't work. This behavior is the same Command Prompt and PowerShell on Windows 10. Workarounds include: - Clicking `Edit > Paste` from the window menu - Enabling `Properties > Options > Use Ctrl+Shift+C/V as

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-07-02 Thread Atul Bagga
Atul Bagga added the comment: Suprisingly this works fine on ConEMU which I commonly use on windows though internally I still use powershell on conemu. https://conemu.github.io/ It does not work on CMD and Powershell consoles. -- ___ Python

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: If anything, this seems to be a getpass doc issue. -- assignee: -> docs@python components: +Documentation -Library (Lib), Windows nosy: +docs@python, terry.reedy ___ Python tracker

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-27 Thread Eryk Sun
Eryk Sun added the comment: getpass() reads from the console via msvcrt.getwch(). This is a raw console read, so Ctrl+V is read as the SYN (0x16) control character. Only the following keys are handled specially by getpass: * Ctrl+C - raise KeyboardInterrupt * Ctrl+H (backspace) - delete

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-27 Thread Atul Bagga
New submission from Atul Bagga : Detailed issue filed here - https://github.com/microsoft/knack/issues/160 -- components: Library (Lib) messages: 346721 nosy: Atul Bagga priority: normal severity: normal status: open title: getpass.getpass not working with on windows when ctrl+v is