Re: screen clear question

2005-01-02 Thread Alan Gauld
On Sun, 02 Jan 2005 14:23:07 +0800, Craig Ringer <[EMAIL PROTECTED]> wrote: > On Sun, 2005-01-02 at 11:31, jcollins wrote: > > Is there a command in Python to clear the screen? That is without writing > > multiple blank lines. > > Without knowing what 'screen

Newbie question - clearing screen @ interactive prompt

2005-12-09 Thread Kaizer
Hello, I use python on Mandrake 10.2 2005 Ltd edition. I am learning so i use python interactively. How do i clear the screen in python?? I simply type "clear" on the Linux prompt and the screen clears there. Is there a similar command in Python to clear the interactive screen??

Re: screen clear question

2005-01-01 Thread Craig Ringer
On Sun, 2005-01-02 at 11:31, jcollins wrote: > Is there a command in Python to clear the screen? That is without writing > multiple blank lines. Without knowing what 'screen' you're talking about, it's hard to say. If you mean clearing a terminal, you can call 'tpu

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Keith Thompson
best solution. > what is the difference between aliases and symbolic links? Aliases exist only in a shell. Symbolic links exist in the file system. > if i execute a command like 'clear' to clear the screen, where does the > shell look to find the command 'clear'?

Re: Font size

2005-02-15 Thread BOOGIEMAN
On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > Please help me. > How do you clear the screen and then display a number with an enlarged font > size (about 300). > Adam. To clear screen in windows : #at the beggining of the program import os #when you want to clear the screen os

Re: clear shell screen

2007-10-30 Thread Tim Roberts
Shawn Minisall <[EMAIL PROTECTED]> wrote: > >Does anyone know how to clear the shell screen completely ? I tried >import os and then os.system("clear") was said to have worked in Windows >XP, but it's just bringing up another window, then it turns black and

extension to idle to clear screen - but how to write to screen?

2007-11-15 Thread owl
and here I thought I was going to finally be able to change the world AND contribute back to python with my amazing clear screen extension - but I can't get it to work. ;( Copying from ZoomHeight.py and someone else's clever print suggestion:

Re: Font size

2005-02-15 Thread Adam
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > >> Please help me. >> How do you clear the screen and then display a number with an enlarged >> font >> size (about 300). >

Re: clear shell screen

2007-10-29 Thread Gabriel Genellina
ll. Try the other method menctioned in the Knowledge Base article: """ How To Performing Clear Screen (CLS) in a Console Application From http://support.microsoft.com/kb/99261 Some non-Microsoft versions of C++ provide a clrscr function for clearing the screen in a DOS application

clear shell screen

2007-10-28 Thread Shawn Minisall
Does anyone know how to clear the shell screen completely ? I tried import os and then os.system("clear") was said to have worked in Windows XP, but it's just bringing up another window, then it turns black and then it closes in within about a second moving the prompt at the o

Re: Clearing the screen

2006-02-15 Thread Graham
you could always use ANSI escape codes: print "\\033[2J" for a screen clear, or print "\\022[2j \033[0;0H" to clear and reset the way "os.system('clear')" would work. check out http://www.termsys.demon.co.uk/vtansi.htm Seems like all that mud prog

Clearing the screen

2006-02-11 Thread mwt
I'm doing some python programming for a linux terminal (just learning). When I want to completely redraw the screen, I've been using os.system("clear") This command works when using python in terminal mode, and in IDLE. However, when running a little .py file containing that

screen clear question

2005-01-01 Thread jcollins
Is there a command in Python to clear the screen? That is without writing multiple blank lines. Thanks. Jim C -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing a DOS terminal in a script

2007-12-16 Thread Larry Bates
py"? > >> There's an ANSI control code you can use to reset the screen, try printing >> that. > > I googled "[2J" as an ascii sequence that it is supposed to clear > the screen. How do I send that? > > Stephen Normally you would do: import sys sy

Re: Clearing output screen

2005-11-06 Thread Fredrik Lundh
Ivan Shevanski wrote > I know there is a way to do this, but google doesn't seem to want to find it > =) There is a command to clear the output screen right? no, because "output screen" isn't a well-defined concept on modern operating systems. the following works in

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread Laszlo Zsolt Nagy
A. L. wrote: >In Python interactive mode, is there some function acting like 'clear' >command in bash? Could somebody here give some advice? > > Under Linux/UNIX system (on x86 at least) you can use the CTRL+L combination to clear the screen. I do not now similar for Win

clear the screen

2013-04-20 Thread Yuanyuan Li
How to clear the screen? For example, in the two player game. One player sets a number and the second player guesses the number. When the first player enters the number, it should be cleared so that the second number is not able to see it. My question is how to clear the number. Thank you

Re: extension to idle to clear screen - but how to write to screen?

2007-11-17 Thread Tal Einat
On Nov 15, 10:20 pm, owl <[EMAIL PROTECTED]> wrote: > and here I thought I was going to finally be able to change the world > AND contribute back to python with my amazing clear screen extension - > but I can't get it to work. ;( > > Copying from ZoomHeight.py and s

Re: extension to idle to clear screen - but how to write to screen?

2007-11-22 Thread owl
On Nov 17, 3:27 pm, Tal Einat <[EMAIL PROTECTED]> wrote: > On Nov 15, 10:20 pm, owl <[EMAIL PROTECTED]> wrote: > > > > > and here I thought I was going to finally be able to change the world > > AND contribute back to python with my amazing clear screen extens

Re: clear shell screen

2007-10-28 Thread Gabriel Genellina
En Mon, 29 Oct 2007 00:08:14 -0300, Shawn Minisall <[EMAIL PROTECTED]> escribi�: > Does anyone know how to clear the shell screen completely ? I tried > import os and then os.system("clear") was said to have worked in Windows > XP, but it's just bringing up anoth

Re: Clearing output screen

2005-11-06 Thread Ivan Shevanski
On 11/6/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Ivan Shevanski wrote> I know there is a way to do this, but google doesn't seem to want to find it> =) There is a command to clear the output screen right?no, because "output screen" isn't a well-defined concept o

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Michael Paoli
lear(1) or tput clear will handle that in the simple case of shell accessible means to clear the screen). Most UNIX(/LINUX/BSD/...) implementations support a large number of terminal types. E.g. on my system, I check and find that there are 1470 unique terminal types (descriptions) supported - and

use CTRL+L for clearing the screen

2012-02-29 Thread Jabba Laci
Hi, I'm working on an interactive script. With raw_input user input is read and the script produces some output and offers the prompt again. I would like to add a clear screen feature, which would be activated with CTRL+L. How to do that? Another thing: raw_input waits until but I'

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

2010-07-27 Thread Terry Reedy
screens and use them as such. OS-independent full-screen graphics/game libraries have clear screen commands. Similary, GUI systems have means of clearing text and canvas widgets, but should not be able to clear the whole screen. The turtle module has a clear command for its canvas, which would

Re: use CTRL+L for clearing the screen

2012-02-29 Thread Ben Finney
Jabba Laci writes: > I would like to add a clear screen feature, which would be activated > with CTRL+L. How to do that? > Another thing: raw_input waits until but I'd like to clear the > screen at the moment when CTRL+L is pressed. That sounds like a job for the standard

Re: clear the screen

2013-04-21 Thread Steven D'Aprano
On Sat, 20 Apr 2013 19:45:46 -0700, Yuanyuan Li wrote: > How to clear the screen? For example, in the two player game. One player > sets a number and the second player guesses the number. When the first > player enters the number, it should be cleared so that the second number > is

Re: clear shell screen

2007-10-29 Thread Shawn Minisall
PROTECTED]> escribi�: > > >> Does anyone know how to clear the shell screen completely ? I tried >> import os and then os.system("clear") was said to have worked in Windows >> XP, but it's just bringing up another window, then it turns black and >&g

Re: Clearing the screen

2006-02-11 Thread Steven D'Aprano
On Sat, 11 Feb 2006 18:14:02 -0200, Felipe Almeida Lessa wrote: > Em Sáb, 2006-02-11 às 12:04 -0800, mwt escreveu: >> I'm doing some python programming for a linux terminal (just learning). >> When I want to completely redraw the screen, I've been using >> os.system

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

2010-07-28 Thread Ulrich Eckhardt
UI. Those typically not only clear the screen, but also control its whole layout and content, so there you don't only need ways to clear the screen but also to position the cursor or draw boxes etc. In that case you need a full "curses" library. Summary: No, I don't see

Re: Clearing the screen

2006-02-11 Thread Felipe Almeida Lessa
Em Sáb, 2006-02-11 às 12:04 -0800, mwt escreveu: > I'm doing some python programming for a linux terminal (just learning). > When I want to completely redraw the screen, I've been using > os.system("clear") > This command works when using python in terminal mo

Re: Exploring terminfo

2021-01-14 Thread Eli the Bearded
In comp.lang.python, Barry Scott wrote: > Alan Gauld via Python-list wrote: >> I've written a short program that is supposed to >> - *clear the screen*, >> - read some input >> - display the result in a message *highlighted in bold*. >> - get input to end t

Re: goto, cls, wait commands

2005-02-13 Thread Fredrik Lundh
Mike Meyer wrote: >>> Secondly, how do I clear screen (cls) from text and other content ? >> >> That depends on >> >> A: What type of display device you're using >> B: What type of interface is being rendered on that display (command >> line, GUI,

Clearing the screen

2004-12-24 Thread Ishwor
print " "; now that does the job very nicely and i get cleared screen but what i really want to achieve it everytime i start IDLE, without importing any module, i want to be able to do just cls() and be able to clear the screen. Is that achievable? Does that have mean i have to tinker

Re: cursor positioning

2005-07-11 Thread Danny Milosavljevic
ht times Dgo left times Ago up times Bgo down times Kclear to end of line 2J clear screen (yes, to every rule there are exceptions :), note that this does not make the cursor go home) mset color/highlight/formatting flags Examples ESC[2JESC[H same as &

Fwd: IDLE: clearing the screen

2024-06-04 Thread Rob Cliffe via Python-list
mport os def cls(): x=os.system("cls") Now whenever you type cls() it will clear the screen and show the prompt at the top of the screen. (The reason for the "x=" is: os.system returns a result, in this case 0.  When you evaluate an expression in the IDE, the IDE prints the r

Re: Clearing the screen

2006-02-12 Thread mwt
self.minutes = 0 self.output() time.sleep(60) #nite-nite except KeyboardInterrupt:#user types Ctrl-C print "Bye bye." os.system("clear")

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

2010-07-28 Thread Daniel Fetchinson
at provide a text-based interactive UI. Those typically not only > clear the screen, but also control its whole layout and content, so there > you don't only need ways to clear the screen but also to position the > cursor or draw boxes etc. In that case you need a full "curses"

Re: screen clear question

2005-01-05 Thread Andrew Robert
Nick Coghlan wrote: Alan Gauld wrote: But the bottom line is that there is no builtin command because the mechanism is different on each platform. I'd have said it was because the inpreter is line-oriented rather than screen-oriented, but YMMV. Cheers, Nick. I would try doing a test ag

Re: Clearing a DOS terminal in a script

2007-12-13 Thread Stephen_B
On Dec 13, 11:21 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > It opens "clear" with it's own virtual terminal and clears that > instead. Even when I launch the script from a cmd shell with "python myscript.py"? > There's an ANSI con

Re: IDLE: clearing the screen

2024-06-09 Thread Alan Gauld via Python-list
t; it clears the screen.  For me on a Mac it clears the terminal screen that I used to launch IDLE and prints a single blank line on the IDLE shell. (And I have to use "clear" instead of "cls" of course. A quick Google suggests that printing Ctrl-L (formfeed?) might be a platfo

Re: Font size

2005-02-16 Thread Adam
"Adam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: >> >>> Please help me. >>>

Re: screen clear question

2005-01-01 Thread Daniel Bickett
import os # windows os.system("cls") # bash ( mac, linux ) os.system("clear") That's all I can account for. Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: symbolic links, aliases, cls clear

2006-04-12 Thread af . dingo
If I may recommend an alternative, print "\033[H\033[J" the ansi sequence to clear the screen. -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the screen

2004-12-24 Thread Ishwor
ht just do: well i am not doing any console i/o. Just simple one. i am trying to clear the IDLE (one of python IDE distributed with the original distribution) screen which is pretty easy but having to do >>>import cls >>> cls() everytime is boring (2 lines of boredom!!) so what

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

2010-07-28 Thread Jonathan Hartley
ce you then end up with control sequences in the file. > > 2. Those that provide a text-based interactive UI. Those typically not only > clear the screen, but also control its whole layout and content, so there > you don't only need ways to clear the screen but also to position the >

library not initialized (pygame)

2021-05-02 Thread Quentin Bock
it(instructions, (10, 40)) screen.blit(instructions_2, (10, 60)) screen.blit(instructions_3, (10, 80)) screen.blit(clear, (10, 120)) if event.type == pygame.MOUSEBUTTONDOWN: if event.type == pygame.MOUSEBUTTONUP:

Re: Font size

2005-02-16 Thread [EMAIL PROTECTED]
Adam wrote: > "Adam" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > "BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > >>

Re: Font size

2005-02-15 Thread Fredrik Lundh
"Adam" <[EMAIL PROTECTED]> wrote: > How do you clear the screen and then display a number with an enlarged font > size (about 300). what platform? what screen? 300 what? -- http://mail.python.org/mailman/listinfo/python-list

How to clear screen in Python interactive shell mode?

2005-09-15 Thread A. L.
In Python interactive mode, is there some function acting like 'clear' command in bash? Could somebody here give some advice? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Clearing output screen

2005-11-06 Thread Ivan Shevanski
I know there is a way to do this, but google doesn't seem to want to find it =)  There is a command to clear the output screen right? Thanks in advance,  -Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: goto, cls, wait commands

2005-02-12 Thread Mike Meyer
Alan Kennedy <[EMAIL PROTECTED]> writes: >> Secondly, how do I clear screen (cls) from text and other content ? > > That depends on > > A: What type of display device you're using > B: What type of interface is being rendered on that display (command > lin

Re: clear the screen

2013-04-21 Thread Dave Angel
On 04/20/2013 10:45 PM, Yuanyuan Li wrote: How to clear the screen? For example, in the two player game. One player sets a number and the second player guesses the number. When the first player enters the number, it should be cleared so that the second number is not able to see it. My

Re: cursor positioning

2005-07-12 Thread Mage
Danny Milosavljevic wrote: >Hi, > > > >Examples > ESC[2JESC[H same as "clear", clear screen, go home > \rESC[Kprogress %dprobably what you want :) > > Well, like the good old Commodore times :) Thank you. Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: graphic memory & animation

2005-10-17 Thread Fredrik Lundh
ng the screen refresh time (16 ms = 60 fps) rather than the time it takes to draw things. try disabling vertical sync in your display driver to see if that fixes the problem (if you do things the right way, you shouldn't have to do that: you should clear/copy and draw the new scr

Re: library not initialized (pygame)

2022-02-19 Thread Martin Di Paola
Could you share the traceback / error that you are seeing? On Sun, May 02, 2021 at 03:23:21PM -0400, Quentin Bock wrote: Code: #imports and variables for game import pygame from pygame import mixer running = True #initializes pygame pygame.init() #creates the pygame window screen

symbolic links, aliases, cls clear

2006-03-29 Thread mp
ot use the shell (because it does not recognize shell aliases). is this correct? should i use a symbolic link? if so, where should i place it? what is the difference between aliases and symbolic links? if i execute a command like 'clear' to clear the screen, where does the shell look

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread Steven D'Aprano
On Thu, 15 Sep 2005 21:18:33 -0700, A. L. wrote: > In Python interactive mode, is there some function acting like 'clear' > command in bash? Could somebody here give some advice? > > Thanks in advance. Something like this may help: def clearscreen(numlines=100):

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Dennis Lee Bieber wrote: flush() is working perfectly fine -- it says transmit any data still held within internal buffers. It is NOT a "clear screen", "clear line" terminal command. I was mistaken about the sys.stout.flush(). I understand it a little more

Re: screen clear question

2005-01-02 Thread Nick Coghlan
Alan Gauld wrote: But the bottom line is that there is no builtin command because the mechanism is different on each platform. I'd have said it was because the inpreter is line-oriented rather than screen-oriented, but YMMV. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Bri

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

2010-07-28 Thread Jonathan Hartley
ce you then end up with control sequences in the file. > > 2. Those that provide a text-based interactive UI. Those typically not only > clear the screen, but also control its whole layout and content, so there > you don't only need ways to clear the screen but also to position the >

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
[EMAIL PROTECTED] wrote: >If I may recommend an alternative, > >print "\033[H\033[J" > >the ansi sequence to clear the screen. Or so you would hope (however, that is *not* what you have listed!). Unfortunately, it is poor practice to hard code such sequences. Instead t

Re: Fwd: IDLE: clearing the screen

2024-06-04 Thread Cameron Simpson via Python-list
On 04Jun2024 22:43, Rob Cliffe wrote: import os def cls(): x=os.system("cls") Now whenever you type cls() it will clear the screen and show the prompt at the top of the screen. (The reason for the "x=" is: os.system returns a result, in this case 0.  When you evaluate

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

2010-07-28 Thread Jonathan Hartley
ers 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 started by > > clearing my screen, I'd just dump it. Also, if output is redire

Re: Clearing the screen

2004-12-24 Thread Lars
Hi Iswor, If I understand you correctly then your program is writing output to a console/terminal window and you want to clear that window. I don't know of any library methods for that, but you might just do: os.system("cls") #for windows or os.system("clear")

Exploring terminfo

2021-01-14 Thread Alan Gauld via Python-list
During lockdown I've been digging deeper into the curses module and lately into the ti family of functions that reside there. I've written a short program that is supposed to - *clear the screen*, - read some input - display the result in a message *highlighted in bold*. - get in

Re: Clearing the screen

2006-02-12 Thread Fredrik Lundh
"mwt" wrote: > Arrgghh... Is there any way to edit posts on this thing? are you aware that you're posting to a usenet newsgroup? > The os.system("clear") doesn't work at all in a module. works for me (as long as I'm running the code on a platform that h

Re: Fwd: IDLE: clearing the screen

2024-06-05 Thread Rob Cliffe via Python-list
On 05/06/2024 04:09, Cameron Simpson wrote: On 04Jun2024 22:43, Rob Cliffe wrote: import os def cls(): x=os.system("cls") Now whenever you type cls() it will clear the screen and show the prompt at the top of the screen. (The reason for the "x=" is: os.system returns a

Re: os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
irst answer, Devilly 2008/12/25 Python > > On 25 dec 2008, at 11:22, Dennis van Oosterhout wrote: > >> Hi there! I was searching for a way to clear the 'DOS screen'/command screen >> etc. and found that os.system('cls') works for this. I was just wonderin

Re: Clearing the screen

2006-02-11 Thread Steven D'Aprano
d you like us to guess? Because it works for me, both as a stand-alone script: $ cat clear.py magic = "\x1b[H\x1b[2J" def clear(): print magic if __name__ == "__main__": clear() $ python clear.py and also from inside Python as a module: >>> import clea

Re: Clearing the screen

2004-12-25 Thread Craig Ringer
. > > I don't know of any library methods for that, but you might just do: > > well i am not doing any console i/o. Just simple one. i am trying to > clear the IDLE (one of python IDE distributed with the original > distribution) screen which is pretty easy but having to d

IDLE: clearing the screen

2024-06-04 Thread Cave Man via Python-list
Hello everyone, I am new to Python, and I have been using IDLE (v3.10.11) to run small Python code. However, I have seen that the output scrolls to the bottom in the output window. Is there a way to clear the output window (something like cls in command prompt or clear in terminal), so

Re: Clearing a DOS terminal in a script

2007-12-13 Thread Chris Mellon
On Dec 13, 2007 10:48 AM, Stephen_B <[EMAIL PROTECTED]> wrote: > This doesn't seem to work in a dos terminal at the start of a script: > > from os import popen > print popen('clear').read() > > Any idea why not? Thanks. It opens "clear" with

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
Keith Thompson <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Floyd L. Davidson) writes: >> [EMAIL PROTECTED] wrote: >>>If I may recommend an alternative, >>> >>>print "\033[H\033[J" >>> >>>the ansi sequence to clear the sc

Re: how to do draw pattern with python?

2012-09-21 Thread Chris Angelico
On Sat, Sep 22, 2012 at 3:31 AM, Chris Angelico wrote: > It's an ANSI escape sequence, or rather two of them. The first one > clears the screen, the second returns you to 0,0. (Isn't that implicit > in the 2J code? Maybe I'm misremembering.) Ah. From Wikipedia: "If

Re: screen clear question

2005-01-02 Thread Alan Gauld
On Mon, 03 Jan 2005 02:15:23 +1000, Nick Coghlan > Alan Gauld wrote: > > But the bottom line is that there is no builtin command > > because the mechanism is different on each platform. > > I'd have said it was because the inpreter is line-oriented rather than &

Re: Clearing the screen

2006-02-14 Thread mwt
It clears the screen by scrolling all the characters out of sight at the top of the terminal window. So the screen is blank, but not cleared in the sense that I mean it. The behavior I want is for the display to be effectively "erased" and ready to receive the next wave of data -- like

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Keith Thompson
[EMAIL PROTECTED] (Floyd L. Davidson) writes: > [EMAIL PROTECTED] wrote: >>If I may recommend an alternative, >> >>print "\033[H\033[J" >> >>the ansi sequence to clear the screen. > > Or so you would hope (however, that is *not* what you have li

Re: Exploring terminfo

2021-01-14 Thread Barry Scott
> On 14 Jan 2021, at 16:12, Alan Gauld via Python-list > wrote: > > During lockdown I've been digging deeper into the curses module > and lately into the ti family of functions that reside there. > > I've written a short program that is supposed to > -

Standard Python 2.4 module like "crypt" for Windows?

2007-12-11 Thread dananrg
le level of security. What are some of my options? Also wondering if, for PythonWin, there is a module that will display asterisks rather than echo entered passwords in clear text. I see I have access to the getpass module, but I can't get it to work--it still echos typed-in passwords to

Re: os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
t; 2008/12/25 Python >> >> On 25 dec 2008, at 11:22, Dennis van Oosterhout wrote: >> >>> Hi there! I was searching for a way to clear the 'DOS screen'/command >>> screen etc. and found that os.system('cls') works for this. I was just >>

Re: Screen Control in WinXP and Linux

2007-04-17 Thread Gabriel Genellina
ly under > Linux and Windows. Nothing fancy - just clear the screen, print a > string at an arbitrary xy position and detect a keystroke. I've > googled around this newsgroup and elsewhere, and come across various > suggestions (and even posted my own partial solutions), but st

os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
Hi there! I was searching for a way to clear the 'DOS screen'/command screen etc. and found that os.system('cls') works for this. I was just wondering where I can find al the commands which can be used for os.system(). I searched with google but I didn't find an answe

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Chris F.A. Johnson
a symbolic link? if so, where should i place it? > > what is the difference between aliases and symbolic links? What's the difference between a raven and a writing desk? > if i execute a command like 'clear' to clear the screen, where does the > shell look to find

Re: Clearing a DOS terminal in a script

2007-12-13 Thread John Machin
s terminal". What is "clear"? C:\junk>clear 'clear' is not recognized as an internal or external command, operable program or batch file. C:\junk>ver Microsoft Windows XP [Version 5.1.2600] C:\junk>help cls Clears the screen. CLS C:\junk> The followin

Font size

2005-02-15 Thread Adam
Please help me. How do you clear the screen and then display a number with an enlarged font size (about 300). Adam. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run script from interpreter?

2014-05-29 Thread Mark H Harris
ve a similar way for the REPL to drop into "shell" mode for system commands. So, I might code a clear screen in python: def cls() rc = system("clear") or in Julia function cls() run(`clear`) end ... but on Julia we can also do this: ; clear On the Julia REPL the &q

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread bruce
elif os.name in ("nt", "dos", "ce"): # emacs/Windows What`s the right statement here? -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the screen

2006-02-12 Thread mwt
Arrgghh... Is there any way to edit posts on this thing? The os.system("clear") doesn't work at all in a module. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread A. L.
I have tested it under windows python console, and it works. Thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-08-25 Thread norseman
be completely non-portable?) On a Televideo screen this is the CLEAR SCREEN command. It was the standard clear screen for most terminals of the CP/M days. One could simply use the debugger, type in the hex and save as z.com. Then when one typed z the jumbled up screen cleared to system prompt

Re: Python and (n)curses

2007-06-19 Thread peter
I've said it before and I'll say it again. Why does Python have no platform neutral commands for simple screen manipulation? yabasic (a 'hobby' type language - http://www.yabasic.de/) has commands clear screen, inkey$ and putscreen$ which perform the basic functions of

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread A. L.
Thank you very much. I have tested it under Cygwin, and that works. But it fails under Windows Python Shell Mode. -- http://mail.python.org/mailman/listinfo/python-list

Re: goto, cls, wait commands

2005-02-10 Thread Pekka Niiranen
import os if os.name == "nt": os.system("cls") # Works in w2k else: os.system("clear")# Works in cygwin's Bash Ulf Göransson wrote: Bruno Desthuilliers wrote: Duncan Booth a écrit : BOOGIEMAN wrote: Secondly, how do I cle

Re: repair modify uninstall

2020-06-11 Thread Grant Edwards
On 2020-06-11, Terry Reedy wrote: > >> Indeed. Is the file name not clear that it's an installer? > > No. python-3.8.3-amd64.exe, which is typical naming for install files. > > I opened https://bugs.python.org/issue40948 and suggested adding > '-setup'

Re: os.system('cls')

2008-12-25 Thread Chris Gonnerman
Depends on what operating system you are using. The list of possible commands would be unbounded, if not truly infinite. > From: Dennis van Oosterhout [mailto:de.slotenzwem...@gmail.com] > > Hi there! I was searching for a way to clear the 'DOS screen'/command > scre

Re: goto, cls, wait commands

2005-02-10 Thread Harlin
No goto needed. If this makes no sense (which it may not if all you've been exposed to is BASIC) it wouldn't be a bad idea to Google why you should never use a goto statement. To do a clear screen you'll need to use the method that your command shell uses. The shortcut to this

RE: os.system('cls')

2008-12-25 Thread Barak, Ron
searching for a way to clear the 'DOS screen'/command screen etc. and found that os.system('cls') works for this. I was just wondering where I can find al the commands which can be used for os.system(). I searched with google but I didn't find an answer. In the official

Re: how to do draw pattern with python?

2012-09-21 Thread Peter Otten
he cursor to (0,0), it's just like executing > clear(1), and looks like those line coloring scape sequences for bash. "\x1b[2J" or ESC [2J should clear the screen and "\x1b[1;1H" or ESC [1;1H should move the cursor to the origin (I got that wrong in the previo

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

2010-07-27 Thread Phil Thompson
and > any possible unix shell. Sorry, but that is completely wrong - the shell is irrelevant. "clear" is just a normal command line program that queries the termcap/terminfo database (possibly via the curses library) for the terminal specific sequence of characters that will clear the s

Curses Subwin Resizing

2009-05-22 Thread Damian Johnson
I'm using subwindows so I can selectively clear and redraw portions of the screen, however whenever the screen's height is reduced it permanently shrinks (and moves) displaced subwindows, so it can't recover when the screen's enlarged again. I've been looking for hours for any

  1   2   3   4   5   >