summaryrefslogtreecommitdiff
path: root/stdlib.py
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-04-11 17:56:51 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-04-11 17:56:51 +0800
commit9f844cd264e7fcda9a609d0b7039fc5a27300491 (patch)
treecb7fc9b8ea33282d3e9704e82de0a33f6a7fb66d /stdlib.py
parenta904530d9f6c056b3a7839b34c9f677ee7fcb3b4 (diff)
added rawinput functionmain
Diffstat (limited to 'stdlib.py')
-rwxr-xr-xstdlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib.py b/stdlib.py
index 7ad8faf..97b2e52 100755
--- a/stdlib.py
+++ b/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