Skip to content

Implement Windows console raw-mode support #431

Open

Description

@LunaStev

Summary

std::sys::windows::tty currently exposes the portable terminal surface but every mutation function returns -ENOSYS. Interactive Wave applications therefore cannot enable raw input or restore the console state on Windows.

Related issue

Scope

Provide a Windows console-mode implementation using native console APIs. Keep Unix termios details inside Unix providers and translate only the portable behavior required by the public TTY layer.

Acceptance criteria

  • Console state can be queried, saved, switched to raw/nonblocking-compatible input, and restored.
  • Redirection to a pipe or regular file is detected and handled without corrupting console state.
  • Restoration is safe when activation failed partway through.
  • Native handles are not leaked.
  • Windows-native tests or a deterministic smoke harness cover enable/restore behavior.
  • Public comments explain which Unix flags have no Windows equivalent.

Activity

  1. added
    enhancement
    help wanted
    needs testing
    platform-specific feature
    on Aug 29, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedneeds testingplatform-specific feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions