|
|
@ -8,8 +8,8 @@ get = _Getch();
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
input_key = get()
|
|
|
|
input_key = get()
|
|
|
|
print(input_key + ": " + str(ord(input_key)))
|
|
|
|
print(input_key + ": " + str(ord(input_key)))
|
|
|
|
if input_key == "?":
|
|
|
|
#if input_key == "?":
|
|
|
|
break
|
|
|
|
# break
|
|
|
|
if ord(input_key) == 127:
|
|
|
|
if ord(input_key) == 127:
|
|
|
|
write_special("BACKSPACE_DELETE")
|
|
|
|
write_special("BACKSPACE_DELETE")
|
|
|
|
continue
|
|
|
|
continue
|
|
|
@ -19,7 +19,11 @@ while True:
|
|
|
|
if ord(input_key) == 27:
|
|
|
|
if ord(input_key) == 27:
|
|
|
|
print("Special key detected!")
|
|
|
|
print("Special key detected!")
|
|
|
|
key = [x for x in "ABCDE7890134~2"]
|
|
|
|
key = [x for x in "ABCDE7890134~2"]
|
|
|
|
if get() == "[":
|
|
|
|
input_key = get()
|
|
|
|
|
|
|
|
#print(ord(input_key))
|
|
|
|
|
|
|
|
if ord(input_key) == 27:
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
if input_key == "[":
|
|
|
|
again = False
|
|
|
|
again = False
|
|
|
|
input_key = get()
|
|
|
|
input_key = get()
|
|
|
|
if input_key != "[":
|
|
|
|
if input_key != "[":
|
|
|
|