pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
295 stars 34 forks source link

Bug in pygbag test repl #116

Open Two119 opened 10 months ago

Two119 commented 10 months ago

image so i just did a little experiment, i imported pygame and tried to run pygame.quit, but i accidentally missed a bracket and pressed enter so i had typed pygame.quit( and now it's just infinitely spouting lines, no matter what i do, even if i press ctrl+c or escape or type in the bracket and press enter, it just continues printing out underscores

https://github.com/pygame-web/pygbag/assets/99664810/740a2cb9-1dfc-4224-937c-9a12f0f0ac4a

pmp-p commented 10 months ago

the way readline emulation is implemented (js side) it is not easy to fix that. it would be better (and maybe simpler) to switch to a full async rich repl like https://github.com/prompt-toolkit