> > 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
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 -
> 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
> 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
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
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
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
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
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
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
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
11 matches
Mail list logo