Skip to content

Windows compatibility with msvcrt #4

@undeMalum

Description

@undeMalum

Hi!

I have been using prezo for a while and really enjoying the experience!

However, since I'm on Windows, I need to turn to WSL in order to use prezo because termios module is not accessible on Windows.

I think the issue is caused by this piece of code:

# Wait for keypress
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
    tty.setraw(fd)
    sys.stdin.read(1)
finally:
    termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)

Would you be open to extending the support to Windows?

I could implement it with msvcrt.

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