Re: Python Clearing the Screen and Setting Position

  • From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 24 Sep 2011 08:27:11 -0600

If you're using Linux, you'll have to use NCurses. I'm not sure how you'd do it on Windows though. maybe you can call to the console api functions.

On 9/24/2011 7:43 AM, Rich De Steno wrote:
In reading the various Python tutorials, I cannot find a way to clear the screen and set the cursor at a specific position on the screen for a print statement. I was able to do this easily in C with a clear screen command and the gotoxy command to set the cursor at an X, Y position. Is there a way to do this in Python?



--

Take care,
Ty
Web: http://tds-solutions.net
The Aspen project: a light-weight barebones mud engine
http://code.google.com/p/aspenmud

Sent from my toaster.

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: