diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-18 17:50:25 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-18 17:50:25 +0000 |
commit | 99096adb1c95c870a4f60bcf60eca3886adf2a14 (patch) | |
tree | 5ccad107edcb6949b1e73289c813655fdffc4780 /textproc/py-readchar/files/patch-readchar_readchar.py | |
parent | databases/cego: update 2.45.34 -> 2.45.35 (diff) |
Add textproc/py-readchar
Library to easily read single chars and key strokes. The idea is to have a
portable way to read single characters and key-strokes.
WWW: https://github.com/magmax/python-readchar
Notes
Notes:
svn path=/head/; revision=555653
Diffstat (limited to 'textproc/py-readchar/files/patch-readchar_readchar.py')
-rw-r--r-- | textproc/py-readchar/files/patch-readchar_readchar.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/py-readchar/files/patch-readchar_readchar.py b/textproc/py-readchar/files/patch-readchar_readchar.py new file mode 100644 index 000000000000..03ea584ae01a --- /dev/null +++ b/textproc/py-readchar/files/patch-readchar_readchar.py @@ -0,0 +1,11 @@ +--- readchar/readchar.py.orig 2020-11-18 17:42:51 UTC ++++ readchar/readchar.py +@@ -9,6 +9,8 @@ if sys.platform.startswith('linux'): + from .readchar_linux import readchar + elif sys.platform == 'darwin': + from .readchar_linux import readchar ++elif sys.platform.startswith('freebsd'): ++ from .readchar_linux import readchar + elif sys.platform in ('win32', 'cygwin'): + import msvcrt + from .readchar_windows import readchar |