Skip to content

can/should we switch from msvcrt.getch() to msvcrt.getwch() #93

@Cube707

Description

@Cube707

getwch() directly returns a string, so we could remove the manual decoding done here:

# manual byte decoding because some bytes in windows are not utf-8 encodable.
return chr(int.from_bytes(msvcrt.getch(), "big"))

Does a swicht pose problems? Can we overcome theme?
Are there donwsides?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions