Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Terminal cbreak mode#2288

errge started this conversation inProposals
Feb 13, 2025· 0 comments
Discussion options

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 totty.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 ofxterm.js,pyscript or the general technology and will never be possible? Is there a workaround?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@errge

[8]ページ先頭

©2009-2025 Movatter.jp