Popular recipes tagged "screenclear"http://code.activestate.com/recipes/tags/screenclear/2011-02-26T14:26:02-08:00ActiveState Code RecipesClear screen and beep for various platforms. (Python) 2011-02-26T14:26:02-08:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577588-clear-screen-and-beep-for-various-platforms/ <p style="color: grey"> Python recipe 577588 by <a href="/recipes/users/4177147/">Barry Walker</a> (<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/beep/">beep</a>, <a href="/recipes/tags/clearscreen/">clearscreen</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/error_beep/">error_beep</a>, <a href="/recipes/tags/error_sound/">error_sound</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/screenclear/">screenclear</a>, <a href="/recipes/tags/sound/">sound</a>, <a href="/recipes/tags/windows/">windows</a>, <a href="/recipes/tags/winuae/">winuae</a>). </p> <p>This little module gives a clear screen and beep for the classic AMIGA, WinUAE, Windows and Linux all in CLI/Command-Prompt/Terminal mode.</p> <p>It works from Python 1.4.x to 2.7.x; talk about backwards compatibility... ;oD With very little modification it will work on Python 3.x.x easily.)</p> <p>See the file clsbeep.py attached for more information.</p> <p>it is saved as clsbeep.py and placed into the Python - Lib drawer or where-ever the modules are located and called as a module:-</p> <pre class="prettyprint"><code>&gt;&gt;&gt; import clsbeep </code></pre> <p>Its usage is:-</p> <p>clsbeep.cls() and clears the screen. clsbeep.beep() and creates an error beep. clsbeep.both() creates an error beep first then clears the screen.</p> <p>It is Public Domain and if you modify it to suit other platforms please let me have a copy of your code... :)</p> <p>Enjoy finding simple solutions to often very difficult problems. ;o)</p>