Skip to content

Add native Windows support #85

Closed

Description

@AmeerAliAnwar

Problem
CLI crashes on Windows: ModuleNotFoundError: No module named 'termios' (Unix-only module)

Solution
Make terminal handling platform-specific in
console.py:

Conditional imports (termios/tty vs msvcrt/ctypes)
Windows: Use msvcrt.kbhit() + msvcrt.getwch() for input, ctypes for console modes
Unix: Keep existing termios/tty implementation
Benefits
Native Windows support (no WSL/Docker needed)
Zero new dependencies (stdlib only)
Full feature parity including colab console
Backward compatible with Linux/macOS

Activity

  1. sethtroisi commented on Nov 10, 2026

    @sethtroisi
    Collaborator

    As mentioned in the readme Windows is not supported.

    There has been some best effort work in #135, #178, and #181 to make windows work but native windows support a goal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions