magmax / python-readchar

Python library to read characters and key strokes
MIT License
143 stars 43 forks source link

Swap linefeed & carriage return keycodes #69

Closed vanschelven closed 2 years ago

vanschelven commented 2 years ago
>>> "\n" == "\x0a"  # n for "new line"
True
"\r" == "\x0d"  # r for "return"
True
magmax commented 2 years ago

This is a simple change, but can have some backwards incompatibilities for people using the wrong values... Maybe it will wait for version 4.0