<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Python_-_termio</id>
	<title>Python - termio - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Python_-_termio"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Python_-_termio&amp;action=history"/>
	<updated>2026-05-18T16:14:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Python_-_termio&amp;diff=1859&amp;oldid=prev</id>
		<title>PeterHarding at 23:14, 15 April 2008</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Python_-_termio&amp;diff=1859&amp;oldid=prev"/>
		<updated>2008-04-15T23:14:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:14, 16 April 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot;&gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;getch = _Getch()          &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;getch = _Getch()          &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Python]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Python_-_termio&amp;diff=1858&amp;oldid=prev</id>
		<title>PeterHarding: New page: =Getch=  Gets a single character from standard input which does not echo to the screen.  &lt;pre&gt; #!/usr/bin/env python  class _Getch:     &quot;&quot;&quot;Gets a single character from standard input.  Doe...</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Python_-_termio&amp;diff=1858&amp;oldid=prev"/>
		<updated>2008-04-15T23:14:40Z</updated>

		<summary type="html">&lt;p&gt;New page: =Getch=  Gets a single character from standard input which does not echo to the screen.  &amp;lt;pre&amp;gt; #!/usr/bin/env python  class _Getch:     &amp;quot;&amp;quot;&amp;quot;Gets a single character from standard input.  Doe...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Getch=&lt;br /&gt;
&lt;br /&gt;
Gets a single character from standard input which does not echo to the screen.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
class _Getch:&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;Gets a single character from standard input.  Does not echo to the screen.&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    def __init__(self):&lt;br /&gt;
        try:&lt;br /&gt;
            self.impl = _GetchWindows()&lt;br /&gt;
        except ImportError:&lt;br /&gt;
            self.impl = _GetchUnix()&lt;br /&gt;
&lt;br /&gt;
    def __call__(self): return self.impl()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
class _GetchUnix:&lt;br /&gt;
    def __init__(self):&lt;br /&gt;
        import tty, sys&lt;br /&gt;
&lt;br /&gt;
    def __call__(self):&lt;br /&gt;
        import sys, tty, termios&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;
&lt;br /&gt;
class _GetchWindows:&lt;br /&gt;
    def __init__(self):&lt;br /&gt;
        import msvcrt&lt;br /&gt;
&lt;br /&gt;
    def __call__(self):&lt;br /&gt;
        import msvcrt&lt;br /&gt;
        return msvcrt.getch()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
getch = _Getch()         &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>