On 06/05/13 09:42, Alan Gauld wrote:
Fred Lundh had a terminal module that tries to make common operations
platform independent, but I'm not sure if its still supported.
It was called console...
I had a quick peek and the last supported version appears to be for 2.6.
And it only claims suppor
On 06/05/13 01:17, boB Stepp wrote:
os.system('cls' if os.name=='nt' else 'clear')
So my main question is there a truly clean, cross-platform solution to
the clear screen dilemma? If my online searching is accurate, then the
answer appears to be no, unless one wants to print many blank lines.
On Sun, May 5, 2013 at 8:54 PM, Steven D'Aprano wrote:
> On 06/05/13 10:17, boB Stepp wrote:
>>
>> import os
>> ...
>> os.system('cls')
If you want to try your hand at using curses, it lets you clear the
screen and a whole lot more. Christoph Gohlke has a Windows extension
available based on the
On 5 May 2013 23:12, Steven D'Aprano wrote:
>
> On 06/05/13 12:37, Brian van den Broek wrote:
>> Try:
>>
>> def pragmatic_as_if_clear():
>> print '\n' * 100
>>
>> which isn't too far off of what clear does in bash.
>
> Not in the version of bash I am using in an xterm window. (To be precis
On 06/05/13 12:37, Brian van den Broek wrote:
On 5 May 2013 22:10, boB Stepp wrote:
On Sun, May 5, 2013 at 7:54 PM, Steven D'Aprano
wrote:
So my main question is there a truly clean, cross-platform solution to
the clear screen dilemma? If my online searching is accurate, then the
ans
On 5 May 2013 22:10, boB Stepp wrote:
> On Sun, May 5, 2013 at 7:54 PM, Steven D'Aprano
> wrote:
>
> >
> >> So my main question is there a truly clean, cross-platform solution to
> >> the clear screen dilemma? If my online searching is accurate, then the
> >> answer appears to be no, unless
On Sun, May 5, 2013 at 7:54 PM, Steven D'Aprano wrote:
> On 06/05/13 10:17, boB Stepp wrote:
>>
[...]
>
> But even on Windows that will not work, if you are running under IDLE. And
> unfortunately there is no official way to tell if you are running under
> IDLE, or any other IDE for that matter.
>
On 06/05/13 10:17, boB Stepp wrote:
I have been playing around with my own version of a guess the number
game that I wrote before looking at how the kids' book (which I am
reviewing for my kids) did it. For some reason my children are
fascinated by this game and keep asking me for improvements. T
I have been playing around with my own version of a guess the number
game that I wrote before looking at how the kids' book (which I am
reviewing for my kids) did it. For some reason my children are
fascinated by this game and keep asking me for improvements. The
latest one was to implement an auto