Re: Why is there no platform independent way of clearing a terminal?

2010-08-05 Thread alex23
Lawrence D'Oliveiro wrote: > You’ve got to be kidding. Look at the number of Windows-specific questions > this groups is already full of. Are you really unable to tell the difference between questions about Windows-related modules and snarky, off-topic sniping at Windows itself? -- http://mail.p

Re: Why is there no platform independent way of clearing a terminal?

2010-08-05 Thread Lawrence D'Oliveiro
In message , David Robinow wrote: > Lawrence, you've been asking a lot of off-topic questions about > Microsoft Windows. You’ve got to be kidding. Look at the number of Windows-specific questions this groups is already full of. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-08-04 Thread David Robinow
On Wed, Aug 4, 2010 at 6:47 PM, Lawrence D'Oliveiro wrote: > In message , David > Robinow wrote: > >>  As an admittedly stupid comparison, I have 1579 DLLs in my >> \windows\system32 directory. >> Some number of these have been upgraded by Windows Update. > > What about the ones that aren’t? How d

Re: Package management (was: Why is there no platform independent way of clearing a terminal?)

2010-08-04 Thread Lawrence D'Oliveiro
In message <87aap44mc7.fsf...@benfinney.id.au>, Ben Finney wrote: > Sadly, Python's package management is rather lacking by these standards. > The Distutils legacy assumption of “package recipient, system > administrator, and end user are all the same person”, among other design > decisions, makes

Re: Why is there no platform independent way of clearing a terminal?

2010-08-04 Thread Lawrence D'Oliveiro
In message , David Robinow wrote: > As an admittedly stupid comparison, I have 1579 DLLs in my > \windows\system32 directory. > Some number of these have been upgraded by Windows Update. What about the ones that aren’t? How do you maintain those? -- http://mail.python.org/mailman/listinfo/pyth

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread MRAB
Mark Lawrence wrote: On 02/08/2010 19:14, Benjamin Kaplan wrote: On Mon, Aug 2, 2010 at 9:51 AM, David Robinow wrote: On Mon, Aug 2, 2010 at 11:41 AM, Benjamin Kaplan wrote: ... So these are the packages needed just to run Python in Ubuntu. It doesn't include the packages required for th

Package management (was: Why is there no platform independent way of clearing a terminal?)

2010-08-02 Thread Ben Finney
Mark Lawrence writes: > How does any user or an admin cope with 500 packages? Operating systems with good package management come with tools that help the administrator do this job easily. Also, operating systems with good package management encourage the small-pieces-loosely-joined philosophy

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread Mark Lawrence
On 02/08/2010 19:14, Benjamin Kaplan wrote: On Mon, Aug 2, 2010 at 9:51 AM, David Robinow wrote: On Mon, Aug 2, 2010 at 11:41 AM, Benjamin Kaplan wrote: ... So these are the packages needed just to run Python in Ubuntu. It doesn't include the packages required for the kernel, the desktop en

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread Benjamin Kaplan
On Mon, Aug 2, 2010 at 9:51 AM, David Robinow wrote: > On Mon, Aug 2, 2010 at 11:41 AM, Benjamin Kaplan > wrote: > >... > > So these are the packages needed just to run Python in Ubuntu. It doesn't > > include the packages required for the kernel, the desktop environment, > the > > window manage

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread David Robinow
On Mon, Aug 2, 2010 at 11:41 AM, Benjamin Kaplan wrote: >... > So these are the packages needed just to run Python in Ubuntu. It doesn't > include the packages required for the kernel, the desktop environment, the > window manager, the terminal, and whatever else you want running. In my > fairly c

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread Mark Lawrence
On 02/08/2010 16:41, Benjamin Kaplan wrote: On Mon, Aug 2, 2010 at 8:21 AM, Mark Lawrencewrote: On 01/08/2010 12:10, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: On 01/08/2010 08:18, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: On 01/08/2010 07:50, Law

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread Benjamin Kaplan
On Mon, Aug 2, 2010 at 8:21 AM, Mark Lawrence wrote: > On 01/08/2010 12:10, Lawrence D'Oliveiro wrote: > >> In message, Mark >> Lawrence wrote: >> >> On 01/08/2010 08:18, Lawrence D'Oliveiro wrote: >>> >>> In message, Mark Lawrence wrote: On 01/08/2010 07:50, Lawrence D'Oliveiro

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread Mark Lawrence
On 01/08/2010 12:10, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: On 01/08/2010 08:18, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: Personally I find double clicking on an msi

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Roy Smith
In article , Lawrence D'Oliveiro wrote: > In message <8bkosifpi...@mid.individual.net>, Gregory Ewing wrote: > > > Don't you just leave the machine on overnight and wait > > for Microsoft to download all the stuff they think > > you should be using? > > That’s fine, but it doesn’t handle t

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Lawrence D'Oliveiro
In message , Mark Lawrence wrote: > On 01/08/2010 08:18, Lawrence D'Oliveiro wrote: > >> In message, Mark >> Lawrence wrote: >> >>> On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: >>> In message, Mark Lawrence wrote: > Personally I find double clicking on an msi file rather eas

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Tim Harig
On 2010-08-01, Mark Lawrence wrote: > On 01/08/2010 06:17, Tim Harig wrote: >> On 2010-08-01, Lawrence D'Oliveiro wrote: >>> In message, Tim Harig wrote: >>> It would be rewarding as it would make writing cross-platform charactor mode applications possible. >>> >>> I thought Windows use

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Lawrence D'Oliveiro
In message <8bkosifpi...@mid.individual.net>, Gregory Ewing wrote: > Don't you just leave the machine on overnight and wait > for Microsoft to download all the stuff they think > you should be using? That’s fine, but it doesn’t handle the non-Microsoft stuff. -- http://mail.python.org/mailman/li

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Gregory Ewing
Lawrence D'Oliveiro wrote: How many .msi files would you have to click on to achieve the Windows equivalent? Don't you just leave the machine on overnight and wait for Microsoft to download all the stuff they think you should be using? -- Greg -- http://mail.python.org/mailman/listinfo/python

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Mark Lawrence
On 01/08/2010 08:18, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: Personally I find double clicking on an msi file rather easier. Easier than apt-get dist-upgrade? I'm sorry but I only do Eng

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Lawrence D'Oliveiro
In message , Mark Lawrence wrote: > On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: > >> In message, Mark >> Lawrence wrote: >> >>> Personally I find double clicking on an msi file rather easier. >> >> Easier than apt-get dist-upgrade? > > I'm sorry but I only do English, could you please transl

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Mark Lawrence
On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: In message, Mark Lawrence wrote: Personally I find double clicking on an msi file rather easier. Easier than apt-get dist-upgrade? I'm sorry but I only do English, could you please translate. :) Mark Lawrence. -- http://mail.python.org/mailm

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Mark Lawrence wrote: > Personally I find double clicking on an msi file rather easier. Easier than apt-get dist-upgrade? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Mark Lawrence
On 01/08/2010 06:17, Tim Harig wrote: On 2010-08-01, Lawrence D'Oliveiro wrote: In message, Tim Harig wrote: It would be rewarding as it would make writing cross-platform charactor mode applications possible. I thought Windows users were allergic to command lines. To the best of my knowle

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Tim Harig
On 2010-08-01, Lawrence D'Oliveiro wrote: > In message , Tim Harig wrote: > >> It would be rewarding as it would make writing cross-platform charactor >> mode applications possible. > > I thought Windows users were allergic to command lines. To the best of my knowledge, there have never been any

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Emile van Sebille wrote: > If all else fails, repeating 24 (or 40,60?) lines feeds clears the > screen cross platform. Depending on the height of the terminal window... -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Tim Harig wrote: > It would be rewarding as it would make writing cross-platform charactor > mode applications possible. I thought Windows users were allergic to command lines. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Daniel Fetchinson wrote: > Sure, there are many different terminals and many different operating > systems but in many areas python managed to hide all these complexities > behind a well defined API. Once upon a time, there were indeed many different kinds of actual physical termin

Re: Why is there no platform independent way of clearing a terminal?

2010-07-29 Thread Ulrich Eckhardt
Neil Cerutti wrote: > Perhaps emailing the tests to yourself would be a good solution. > Every tme the tests ran, you'd get a new email containing the > results. Nice idea, only that it's even less portable and requires manual setup... ;^) Uli -- Sator Laser GmbH Geschäftsführer: Thorsten Föc

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Martin Gregorie
On Wed, 28 Jul 2010 09:01:38 -0700, Jonathan Hartley wrote: > Also, is it crazy to imagine that if colorama was pushed through to > completion (ie. to support a majority of the relevant ANSI codes) then > Python's stdlib curses module, unmodified, would suddenly just work on > Windows? (after a ca

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Tim Harig
On 2010-07-28, Thomas Jollans wrote: > It might be possible to write a curses-compatible library that works > with cmd.exe. Maybe. But, even if it's possible, I don't think it's > easy, and I especially don't think it would be particularly rewarding. http://pdcurses.sourceforge.net/ It would be

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Neil Cerutti
On 2010-07-28, Jonathan Hartley wrote: > And Neil Cerutti, I think I'll just email the whole source tree > to myself, and have a script that scans my inbox, unzips source > trees and runs their tests. Much nicer. :-) Don't forget to clear the screen, though. That ties the whole program together.

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Thomas Jollans
On 07/28/2010 07:02 PM, Jonathan Hartley wrote: > On Jul 28, 5:47 pm, Thomas Jollans wrote: >> On 07/28/2010 06:01 PM, Jonathan Hartley wrote: >> >> >> >>> Oh, plus, while we're on this subject: >> >>> Am I right that curses in Python stdlib doesn't work on Windows, and >>> there is currently no s

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 5:47 pm, Thomas Jollans wrote: > On 07/28/2010 06:01 PM, Jonathan Hartley wrote: > > > > > Oh, plus, while we're on this subject: > > > Am I right that curses in Python stdlib doesn't work on Windows, and > > there is currently no simple way to fix this? > > > Also, is it crazy to imagi

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Thomas Jollans
On 07/28/2010 06:01 PM, Jonathan Hartley wrote: > > Oh, plus, while we're on this subject: > > Am I right that curses in Python stdlib doesn't work on Windows, and > there is currently no simple way to fix this? > > Also, is it crazy to imagine that if colorama was pushed through to > completion

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Neil Cerutti
On 2010-07-28, Jonathan Hartley wrote: > I want to write a quick script which, notices whenever I save > my source code, and re-runs the unit tests, displaying the > output. I think I'd like it to clear the terminal before each > re-run of the tests, so that it's immediately obvious what is > outp

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 4:45 pm, Jonathan Hartley wrote: > On Jul 28, 8:08 am, Ulrich Eckhardt wrote: > > > > > Daniel Fetchinson wrote: > > > After getting the technicalities out of the way, maybe I should have > > > asked: > > > > Is it only me or others would find a platform independent python API > > > to

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 8:08 am, Ulrich Eckhardt wrote: > Daniel Fetchinson wrote: > > After getting the technicalities out of the way, maybe I should have > > asked: > > > Is it only me or others would find a platform independent python API > > to clear the terminal useful? > > There are two kinds of programs

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Emile van Sebille
On 7/28/2010 4:23 AM Daniel Fetchinson said... Okay, that makes perfect sense, thanks for the exaplanation! I'll just live with the platform.system( ) check for this particular problem then. If all else fails, repeating 24 (or 40,60?) lines feeds clears the screen cross platform. Emile -

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Daniel Fetchinson
>> > After getting the technicalities out of the way, maybe I should have >> > asked: >> >> > Is it only me or others would find a platform independent python API >> > to clear the terminal useful? > I don't know much, but just in case the following is useful to anyone: > > There is a Windows prog

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Daniel Fetchinson
>> After getting the technicalities out of the way, maybe I should have >> asked: >> >> Is it only me or others would find a platform independent python API >> to clear the terminal useful? > > There are two kinds of programs: > 1. Those that process input to output. If one of those suddenly starte

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 8:08 am, Ulrich Eckhardt wrote: > Daniel Fetchinson wrote: > > After getting the technicalities out of the way, maybe I should have > > asked: > > > Is it only me or others would find a platform independent python API > > to clear the terminal useful? > > There are two kinds of programs

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Ulrich Eckhardt
Daniel Fetchinson wrote: > After getting the technicalities out of the way, maybe I should have > asked: > > Is it only me or others would find a platform independent python API > to clear the terminal useful? There are two kinds of programs: 1. Those that process input to output. If one of those

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Tim Harig
On 2010-07-27, John Nagle wrote: > On 7/27/2010 7:44 AM, Bruno Desthuilliers wrote: >> Grant Edwards a écrit : >>> On 2010-07-27, Bruno Desthuilliers >>> wrote: Daniel Fetchinson a ?crit : >> (snip) > Why was clearing a terminal left out? > What you're talking about is a shell,

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Terry Reedy
On 7/27/2010 12:58 PM, Daniel Fetchinson wrote: After getting the technicalities out of the way, maybe I should have asked: Is it only me or others would find a platform independent python API to clear the terminal useful? One problem is, Where would you put it? The OS module is for system c

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Grant Edwards
On 2010-07-27, Daniel Fetchinson wrote: > After getting the technicalities out of the way, maybe I should have asked: > > Is it only me or others would find a platform independent python API > to clear the terminal useful? I write a lot of command-line programs, and I can't remember the last tim

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread John Nagle
On 7/27/2010 7:44 AM, Bruno Desthuilliers wrote: Grant Edwards a écrit : On 2010-07-27, Bruno Desthuilliers wrote: Daniel Fetchinson a ?crit : (snip) Why was clearing a terminal left out? What you're talking about is a shell, not a terminal (a terminal is a physical device). No, what he'

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Daniel Fetchinson
>>> Hi folks, >>> >>> If I'm only interested in linux and windows I know I can do >>> >>> >>> import os >>> import platform >>> >>> if platform.system( ) == 'Linux': >>> clear = 'clear' >>> else: >>> clear = 'cls' >>> >>> os.system( clear ) >>> #

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Phil Thompson
On Tue, 27 Jul 2010 16:02:23 +0200, Bruno Desthuilliers wrote: > Daniel Fetchinson a écrit : >> Hi folks, >> >> If I'm only interested in linux and windows I know I can do >> >> >> import os >> import platform >> >> if platform.system( ) == 'Linux': >> clear

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Bruno Desthuilliers
Grant Edwards a écrit : On 2010-07-27, Bruno Desthuilliers wrote: Daniel Fetchinson a ?crit : (snip) Why was clearing a terminal left out? What you're talking about is a shell, not a terminal (a terminal is a physical device). No, what he's talking about is clearing a terminal (or a term

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Grant Edwards
On 2010-07-27, Bruno Desthuilliers wrote: > Daniel Fetchinson a ?crit : >> Hi folks, >> >> If I'm only interested in linux and windows I know I can do >> >> >> import os >> import platform >> >> if platform.system( ) == 'Linux': >> clear = 'clear' >> else:

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Bruno Desthuilliers
Daniel Fetchinson a écrit : Hi folks, If I'm only interested in linux and windows I know I can do import os import platform if platform.system( ) == 'Linux': clear = 'clear' else: clear = 'cls' os.system( clear ) or so

Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Daniel Fetchinson
Hi folks, If I'm only interested in linux and windows I know I can do import os import platform if platform.system( ) == 'Linux': clear = 'clear' else: clear = 'cls' os.system( clear ) or something equivalent using os.na