You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to port an old-school, very simple terminal game to the browser. The game is written in python, super simple, single file.
I already tested most of the terminal interactions, and all will be fine, but the only thing that seems to be missing is the possibility to tty.setcbreak(1), so the game can read single keystrokes from the terminal (without the need for pressing enter).
The additional enters completely kill the UX, so forcing the user to move around in the game by pressing enter after each keystroke is out of the question.
Is there a plan to handle this? Is the fact that this is unimplemented a limitation of xterm.js, pyscript or the general technology and will never be possible? Is there a workaround?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to port an old-school, very simple terminal game to the browser. The game is written in python, super simple, single file.
I already tested most of the terminal interactions, and all will be fine, but the only thing that seems to be missing is the possibility to
tty.setcbreak(1)
, so the game can read single keystrokes from the terminal (without the need for pressing enter).The additional enters completely kill the UX, so forcing the user to move around in the game by pressing enter after each keystroke is out of the question.
Is there a plan to handle this? Is the fact that this is unimplemented a limitation of
xterm.js
,pyscript
or the general technology and will never be possible? Is there a workaround?Beta Was this translation helpful? Give feedback.
All reactions