mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Switched to jbboric's version of the rammap.
This commit is contained in:
11
apps/calculation/test.py
Normal file
11
apps/calculation/test.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import sys, tty
|
||||
def command_line():
|
||||
tty.setraw(sys.stdin)
|
||||
while True:
|
||||
char = sys.stdin.read(1)
|
||||
if ord(char) == 3: # CTRL-C
|
||||
break;
|
||||
print(ord(char))
|
||||
sys.stdout.write(u"\u001b[1000D") # Move all the way left
|
||||
|
||||
command_line();
|
||||
Reference in New Issue
Block a user