
| Current Path : /home/ift/51_iftlib/scripts/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //home/ift/51_iftlib/scripts/getch_example.py |
#!/usr/bin/python
import curses, re, os, time
os.system("modprobe pcspkr")
c = curses.initscr()
while (0 == 0):
c1 = c.getch()
print c1
os.system("yc scan " + str(c1))
if os.path.isfile("exit.txt"):
os.unlink("exit.txt")
break
curses.endwin()
os.system("rmmod pcspkr")