dont use javascript prompt() for python input()
- Dominant language
- Python
- Stars
- 14.8k
- Forks
- 1k
- Avg merge
- 20h 29m
- Merged PRs (30d)
- 19
Description
## 🐛 Bug
python [input()](https://docs.python.org/3/library/functions.html#input) is implemented with javascript [prompt()](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)
### To Reproduce
```
input()
import sys; sys.stdin.read(1)
```
### Expected behavior
no javascript `prompt()` popup
the input should be read by the terminal emulator (or from the `stdin` stream)
this is needed to create simple user input prompt apps
the user input should happen in the context of the terminal buffer
not in a popup window that hides the terminal buffer
### Environment
- Pyodide Version: 0.28.0 at https://pyodide.org/en/stable/console.html
- Browser version:137.0.7151.119
- Any other relevant information:
### Additional context
related: #2887 #1219
alternative: https://github.com/sagemathinc/cowasm
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.