
from kbhit import KBHit

kb = KBHit()

print('Hit any key, or ESC to exit')

while True:
    if kb.kbhit():
        c = kb.getch()
        c_ord = ord(c)
        print(c)
        print(c_ord)
        if c_ord == 27: # ESC
            break
        print(c)

kb.set_normal_term()

1cbe49d012a879392a0ef09c1ce1ad6a047358d0
<mask token>

<mask token>
print('Hit any key, or ESC to exit')
while True:
    if kb.kbhit():
        c = kb.getch()
        c_ord = ord(c)
        print(c)
        print(c_ord)
        if c_ord == 27:
            break
        print(c)
kb.set_normal_term()

<mask token>
kb = KBHit()
print('Hit any key, or ESC to exit')
while True:
    if kb.kbhit():
        c = kb.getch()
        c_ord = ord(c)
        print(c)
        print(c_ord)
        if c_ord == 27:
            break
        print(c)
kb.set_normal_term()

from kbhit import KBHit
kb = KBHit()
print('Hit any key, or ESC to exit')
while True:
    if kb.kbhit():
        c = kb.getch()
        c_ord = ord(c)
        print(c)
        print(c_ord)
        if c_ord == 27:
            break
        print(c)
kb.set_normal_term()


from kbhit import KBHit

kb = KBHit()

print('Hit any key, or ESC to exit')

while True:
    if kb.kbhit():
        c = kb.getch()
        c_ord = ord(c)
        print(c)
        print(c_ord)
        if c_ord == 27: # ESC
            break
        print(c)

kb.set_normal_term()
