From 9f844cd264e7fcda9a609d0b7039fc5a27300491 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 11 Apr 2024 17:56:51 +0800 Subject: added rawinput function --- build/lib/stdlib.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build') diff --git a/build/lib/stdlib.py b/build/lib/stdlib.py index 7ad8faf..97b2e52 100644 --- a/build/lib/stdlib.py +++ b/build/lib/stdlib.py @@ -185,6 +185,10 @@ def keepasks(info: str, inputter=ainputf, *inputargs): tmprespond = inputter(info, *inputargs) return tmprespond +def rawinput(): + from readchar import readkey + return readkey() + # animated countdown from @timeoutsec def countdown(timeoutsec: int): from time import sleep -- cgit v1.2.3