Re: [Tutor] Clearing the Console Screen

2005-06-17 Thread Alan G
> > That having been said Fred Lundh has written a console module > > that tries to hide the diffeent trminal types in a common set > > of commands - you can download it from his site. > > The only one I can find there is for Windows: > http://www.effbot.org/zone/console-handbook.htm My bad. Y

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Kent Johnson
Alan G wrote: >>I haven't found the correct way to do this so far. > > > There is no correct way. Every console is different so you have > to adapt. > That having been said Fred Lundh has written a console module > that tries to hide the diffeent trminal types in a common set > of commands -

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Alan G
> Don Parris wrote: > > Thanks! I thought there had to be a way to call the OS' clear screen > > command, but was going about it the wrong way. I was trying to use > > sys.clear instead of os.system. Would it be difficult to test the OS, > > store the result in a variable, and call the comand ba

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Alan G
> I haven't found the correct way to do this so far. There is no correct way. Every console is different so you have to adapt. That having been said Fred Lundh has written a console module that tries to hide the diffeent trminal types in a common set of commands - you can download it from his

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Don Parris
On Thu, 16 Jun 2005 12:24:32 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > > Mind you, there may be other areas where I need an OS-specific command. > > I'm beginning to get an idea of the challenges of portability though. ;) > > Python actually gets a lot of this right, you may find it's ea

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Michael P. Reilly
On 6/16/05, Don Parris <[EMAIL PROTECTED]> wrote: Thanks!  I thought there had to be a way to call the OS' clear screencommand, but was going about it the wrong way.  I was trying to usesys.clear instead of os.system.  Would it be difficult to test the OS, store the result in a variable, and call t

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Kent Johnson
Don Parris wrote: > Thanks! I thought there had to be a way to call the OS' clear screen > command, but was going about it the wrong way. I was trying to use > sys.clear instead of os.system. Would it be difficult to test the OS, > store the result in a variable, and call the comand based on the

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Don Parris
On Thu, 16 Jun 2005 11:16:37 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > Don Parris wrote: > > With the console-based menu system I'm building, I'd like to clear the > > screen for each menu call - something like: > > > > def main_menu(): > > clear #start with a fresh console screen, menu

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Kent Johnson
Don Parris wrote: > With the console-based menu system I'm building, I'd like to clear the > screen for each menu call - something like: > > def main_menu(): > clear #start with a fresh console screen, menu at top > print menuitems There is no nice portable way to do this. On Windows runn

Re: [Tutor] Clearing the Console Screen

2005-06-16 Thread Liam Clarke
One way is to - print * 25 but that's probably not the best. You could check out Pythoncard for a simple GUI builder - pythoncard.sourceforge.net - but it's a leap into the OO stuff.On 6/17/05, Don Parris < [EMAIL PROTECTED]> wrote:With the console-based menu system I'm building, I'd like to c

[Tutor] Clearing the Console Screen

2005-06-16 Thread Don Parris
With the console-based menu system I'm building, I'd like to clear the screen for each menu call - something like: def main_menu(): clear #start with a fresh console screen, menu at top print menuitems This way, the users won't have to get too confused by all the previous screens. I hav