Open twinsant opened 1 year ago
hi, i had some success with nurses_2 which is fully async https://pygame-web.github.io/showroom/pythongit.html?-i#src/test_nurses2.py . Can even keep the repl working like javascript console while TUI application is running if using a different fd than stdin for raw input.
for builtin input() i had no other choice but to use "await input()" instead. http://pygame-web.github.io/showroom/pypad_git.html?-i#src/test_input.py but that's maybe because i don't use a worker thread.
nb: i've used C glue for those, for pyodide it would need to be in js and loaded on startup :(
todo