I have a Python script that sends output to a DOS command window (I am using Windows 7) using the print() function, but I would like to prevent (or hide) the cursor from blinking at the next available output position. Has anyone any idea how I can do this? I have looked at a list of DOS commands but I cannot find anything suitable.
Any help would be appreciated. Alan
As far as one can tell, there is no Windows port for the curses module, which is most likely what you need. The thing that comes closest to meeting your needs is the Console module written by Fredrik Lundh at effbot.org. Unfortunately, the module is available only for versions prior to Python 3, which is what you appear to be using.
In Python 2.6/WinXP, the following code opens a console window, makes the cursor invisible, prints 'Hello, world!' and then closes the console window after two seconds:
import Console
import time
c = Console.getconsole()
c.cursor(0)
print 'Hello, world!'
time.sleep(2)