Skip to content

Compile on targets that are neither unix nor windows - #1066

Open
gronke wants to merge 1 commit into
crossterm-rs:masterfrom
gronke:0.29-portable
Open

Compile on targets that are neither unix nor windows#1066
gronke wants to merge 1 commit into
crossterm-rs:masterfrom
gronke:0.29-portable

Conversation

@gronke

@gronke gronke commented Jul 9, 2026

Copy link
Copy Markdown

Downstream crates want the event types and ANSI commands on targets like wasm32-unknown-unknown, where no terminal exists. Neutral cfg arms stub the platform layer: terminal control and the cursor position query return ErrorKind::Unsupported, supports_keyboard_enhancement answers false, and the event reader starts without a source, so poll reports the missing reader. The event-stream feature remains unavailable on these targets.

Downstream crates want the event types and ANSI commands on targets like wasm32-unknown-unknown, where no terminal exists.
Neutral cfg arms stub the platform layer: terminal control and the cursor position query return ErrorKind::Unsupported, supports_keyboard_enhancement answers false, and the event reader starts without a source, so poll reports the missing reader.
The event-stream feature remains unavailable on these targets.
@gronke
gronke requested a review from TimonPost as a code owner July 9, 2026 12:44
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.

1 participant