<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Python_Readkey</id>
	<title>Python Readkey - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Python_Readkey"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Python_Readkey&amp;action=history"/>
	<updated>2026-06-28T19:45:00Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Python_Readkey&amp;diff=15764&amp;oldid=prev</id>
		<title>Thomas: Die Seite wurde neu angelegt: „&lt;pre&gt; import sys,tty,termios class _Getch:     def __call__(self):             fd = sys.stdin.fileno()             old_settings = termios.tcgetattr(fd)…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Python_Readkey&amp;diff=15764&amp;oldid=prev"/>
		<updated>2017-11-29T21:15:39Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;pre&amp;gt; import sys,tty,termios class _Getch:     def __call__(self):             fd = sys.stdin.fileno()             old_settings = termios.tcgetattr(fd)…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
import sys,tty,termios&lt;br /&gt;
class _Getch:&lt;br /&gt;
    def __call__(self):&lt;br /&gt;
            fd = sys.stdin.fileno()&lt;br /&gt;
            old_settings = termios.tcgetattr(fd)&lt;br /&gt;
            try:&lt;br /&gt;
                tty.setraw(sys.stdin.fileno())&lt;br /&gt;
                ch = sys.stdin.read(1)&lt;br /&gt;
            finally:&lt;br /&gt;
                termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)&lt;br /&gt;
            return ch&lt;br /&gt;
&lt;br /&gt;
def get():&lt;br /&gt;
    inkey = _Getch()&lt;br /&gt;
    while(1):&lt;br /&gt;
            k=inkey()&lt;br /&gt;
            if k!='':break&lt;br /&gt;
    print 'you pressed', ord(k)&lt;br /&gt;
&lt;br /&gt;
def main():&lt;br /&gt;
    for i in range(0,25):&lt;br /&gt;
        get()&lt;br /&gt;
&lt;br /&gt;
if __name__=='__main__':&lt;br /&gt;
    main()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
</feed>