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
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
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 underscoreshttps://github.com/pygame-web/pygbag/assets/99664810/740a2cb9-1dfc-4224-937c-9a12f0f0ac4a