pygame-web / pygbag

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

Bug in pygbag test repl #116

Open Two119 opened 1 year ago

Two119 commented 1 year 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 1 year 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