Skip to content

Add raw terminal mode to spacewasi - #139

Merged
Kronos3 merged 6 commits into
mainfrom
spacewasi_raw
Jul 30, 2026
Merged

Add raw terminal mode to spacewasi#139
Kronos3 merged 6 commits into
mainfrom
spacewasi_raw

Conversation

@cole-wilson

Copy link
Copy Markdown
Collaborator

This PR adds a "raw terminal mode" to the spacewasi crate using crossterm, and also ups the default page size for more complex WASM files (such as those made with container2wasm.

Note that to my current best understanding, true TTY support is not fully supported in wasi1p, so WASM programs cannot enable "raw mode" themselves through typical syscalls. However, this PR adds a --raw-tty flag that lets users enable this mode manually for specific programs. Usage with most typical WASI programs will result in strange screen buffering issues and missing carriage returns, though, so use sparingly.

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

CoreMark Benchmark Results

Current Score: 244.708
Baseline Score (main): 249.237
Difference: -4.529 (-1.82%)

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

Code Coverage Report

Current Coverage: 95.29%
Baseline Coverage (main): 95.29%
Difference: +0.00%

@cole-wilson
cole-wilson requested a review from Kronos3 July 27, 2026 22:59

@Kronos3 Kronos3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please resolve the new merge conflicts and I'll merge

@cole-wilson

Copy link
Copy Markdown
Collaborator Author

Okay, should be all good now. Thanks!

@Kronos3
Kronos3 merged commit 94f4bc3 into main Jul 30, 2026
20 checks passed
@Kronos3
Kronos3 deleted the spacewasi_raw branch July 30, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants