You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
Python version (& distribution if applicable, e.g. Anaconda): 3.7.3
Using VS Code or Visual Studio: VS Code
Actual behavior
sys.stdin.read never returns, even if Enter key is pressed. This is only if the terminal is set to raw mode. Otherwise it works normally.
Expected behavior
sys.stdin.read should return characters that have been entered into stdin while in raw mode. This is a popular method of reading single characters without newlines in Linux as can be seen in these stackoverflow posts.
Run the program in the integrated terminal with launch.json settings as below.
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
The text was updated successfully, but these errors were encountered:
Environment data
Actual behavior
sys.stdin.read never returns, even if Enter key is pressed. This is only if the terminal is set to raw mode. Otherwise it works normally.
Expected behavior
sys.stdin.read should return characters that have been entered into stdin while in raw mode. This is a popular method of reading single characters without newlines in Linux as can be seen in these stackoverflow posts.
Python read a single character from the user
Reading a single character (getch style) in Python is not working in Unix
Steps to reproduce:
The text was updated successfully, but these errors were encountered: