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

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?? Thanks

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 'tput clear' or '/usr/bin/clear

[issue40765] clear screen in idle

2020-05-25 Thread sagar
New submission from sagar : please provide clear screen option in windows idle. clear screen means moving command line to start of the page. -- assignee: terry.reedy components: IDLE messages: 369870 nosy: sagarkancharlas, terry.reedy priority: normal severity: normal status: open

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.system(cls

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 os.system(clear

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 many cases: import os

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 command, the screen

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 Windows and MACs. Les

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 programming came in handy after all. Graham. -- http

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

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: - # My

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? /F -- 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: 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). Adam. To clear screen in windows : #at the beggining

[issue40708] Clearing the screen of IDLE interactive mode in Windows

2020-05-21 Thread Sanmitha
Sanmitha added the comment: Clearing the screen of IDLE interactive mode using the following code: import os os.system("cls") It doesn't clear the screen in Windows -- title: Malfunctioning of '\r' -> Clearing the screen of IDLE interactive mod

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

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

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

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: 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 then it closes in within about a second

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' you're talking about, it's hard to say

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 on modern operating systems.the

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 Enter but I'd like

[issue27771] Add a clear screen button or menu choice for IDLE

2016-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is essentially a duplicate of your #17632, which proposed Clear Screen + Restart, which was closed as a duplicate of #6143, which has some patches. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed s

[issue40711] Clearing the screen of IDLE interactive mode in Windows

2020-05-21 Thread Sanmitha
New submission from Sanmitha : Clearing the screen of IDLE interactive mode using the following code: import os os.system("cls") It doesn't clear the screen in Windows. Actually these two statements have no effect at all. -- Added file: https://bugs.python.org/file49178/Erro

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Keith Thompson
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'? Generally it searches $PATH for an executable file called clear. I don't know Python very well (note the cross-post

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 someone else's clever print suggestion

Re: Clearing a DOS terminal in a script

2007-12-16 Thread Larry Bates
Stephen_B wrote: 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 control code you can use to reset the screen, try

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 another window, then it turns black

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Michael Paoli
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 that's not including multiple aliases for the same terminal

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 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: 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: 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: 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 against

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 control code you can use to reset the screen, try printing that. I

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you write a flexible Text ui program, you should use functions provided by a text ui library which you use to clear the screen or a part of screen. If you want to call an external command, use os.system(), os.popen() or more flexible subprocess module

Re: graphic memory animation

2005-10-17 Thread Fredrik Lundh
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 screen before you flip the buffers) /F

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) #for unix Not the most advanced

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: 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 has a clear command). in what way does it fail

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 now thanks -- http

[issue40765] clear screen in idle

2020-05-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE - clear and restart the shell window type: behavior -> enhancement ___ Python tracker <https://bugs.pyt

symbolic links, aliases, cls clear

2006-03-29 Thread mp
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 to find the command

[issue6143] IDLE - an extension to clear the shell window

2019-01-08 Thread Terry J. Reedy
) ... (15 other hits for [python-idle] clear screen) https://stackoverflow.com/questions/54083355/how-to-clear-the-screen-in-idle-on-imac - 2019 today So I want to revisit this after we do a bit more on squeezer. I want to add 'Clear and Restart' to the Shell menu, as Raymond suggested, so I am

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 the proper sequence should

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, IDE, etc) C: Perhaps what operating system you are using. D

Re: use CTRL+L for clearing the screen

2012-02-29 Thread Ben Finney
Jabba Laci jabba.l...@gmail.com 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 Enter 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 not able to see

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): Clear the console

[issue39141] IDLE Clear function returns 256 on Mac OS Catalina

2019-12-27 Thread David Turner
New submission from David Turner : Trying to set up shortcut function to clear screen but its not working as expected on my Mac OS Catalina -- below is txt from idle import os >>> cls= lambda: os.system('clear') >>> cls() 256 -- messages: 358908 nosy: twiste...@

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(clear) This command works when using

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

2010-07-28 Thread Ulrich Eckhardt
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 the need for such an API. Cheers! Uli -- Sator

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

2010-07-28 Thread Daniel Fetchinson
by clearing my screen, I'd just dump it. Also, if output is redirected to a file or piped into another program, that is basically useless or even hurting, since you then end up with control sequences in the file. 2. Those that provide a text-based interactive UI. Those typically not only clear

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Chris F.A. Johnson
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 the command 'clear'? In a directory listed in the PATH variable. -- Chris F.A. Johnson, author

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 screen. Or so you would hope (however, that is *not* what you have listed!). Unfortunately

Re: Clearing the screen

2006-02-12 Thread mwt
except KeyboardInterrupt:#user types Ctrl-C print Bye bye. os.system(clear) sys.exit() def output(self): os.system(clear) #clear the screen print print

Re: clear shell screen

2007-10-29 Thread Shawn Minisall
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 os.system(clear) line

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 answer. In the official python

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 ros...@gmail.com 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 n is two, clear

Re: clear shell screen

2007-10-29 Thread Gabriel Genellina
in the Knowledge Base article: code 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. However, there is no Win32 Application Programming

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 it's own virtual terminal and clears that instead. There's

[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread sebastin
sebastin added the comment: I meant this on Python IDLE across all platforms. basic necessary enhancements for seamless use of IDLE should atleast have below feature supported. clear(used in MAC/LINUX TERMINAL) or cls(used in WINDOWS CMD PROMPT) - clear the PYTHON IDLE screen. up arrow

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 the pr

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 extension - but I can't get it to work. ;( Copying

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: 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 screen-oriented, but YMMV. Yeah

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 you would do

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 clearing the screen

Re: Screen Control in WinXP and Linux

2007-04-17 Thread Gabriel Genellina
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 still haven't come up with an elegant solution

[issue42771] Implement interactive hotkey, Ctrl+L to clear the console in Windows.

2020-12-28 Thread Mike Miller
New submission from Mike Miller : The Ctrl+L as clear-screen hotkey is supported just about everywhere, Unix and Windows, with the exceptions of cmd.exe and python.exe interactive mode. As the legacy cmd.exe can be easily replaced, that leaves python.exe. Likely needs to be configured via

Re: Clearing the screen

2006-02-11 Thread Steven D'Aprano
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 clear clear.clear() -- Steven. -- http://mail.python.org

Standard Python 2.4 module like crypt for Windows?

2007-12-11 Thread dananrg
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 the screen as clear text. -- http

Re: Python strings outside the 128 range

2006-07-13 Thread Sébastien Boisgérault
Fredrik Lundh wrote: in the iso-8859-1 character set, the character é is represented by the code 0xE9 (233 in decimal). there's no mapping going on here; there's only one character in the string. how it appears on your screen depends on how you print it, and what encoding your terminal

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

2010-07-28 Thread Neil Cerutti
On 2010-07-28, Jonathan Hartley tart...@tartley.com 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

Re: WxPython versus Tkinter.

2011-01-28 Thread Octavian Rasnita
From: rusi rustompm...@gmail.com Its quite clear to everyone here that -- Octavian has no interest in a 21st century snazzy-looking toolkit Oh well I am interested, but with the condition that toolkit to be accessible, however Tkinter is not. Is it too much to expect from a 21st century snazzy

Re: Clearing the screen

2004-12-24 Thread Ishwor
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 i want is to be able to do just cls() and nothing more

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

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-07-28 Thread Ray Kinane
New submission from Ray Kinane : In the Turtle module, there are 2 methods named "clear", one for turtle objects and one for screen objects. In the Turtle module documentation, in the contents section, in the "Turtle methods" section, under "More drawing co

Re: cursor positioning

2005-07-11 Thread Danny Milosavljevic
parameter times Bgo down parameter 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 clear, clear screen, go home

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Anudeep Balla
Anudeep Balla added the comment: Greetings, Any Ip address containing 2 zeros or more are considered to be an invalid IP address. '172.16.254.00' *is not* equivalent to '172.16.254.0' I guess this small logic is causing the error I hope it makes it clear from the below images. Regards

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

2010-07-28 Thread Jonathan Hartley
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 cursor or draw boxes etc. In that case you need a full curses library

Re: recommend a graphics library for plotting by the pixel?

2011-10-05 Thread Adam Funk
on the secondary screen because things were moving around and disappearing. I guess if I don't clear the screen at the beginning of the loop but just blit pixels onto it, when I call display.flip(), it will add the new blittings to what was already there? If that's true, this will be much easier than I

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

2010-07-27 Thread Daniel Fetchinson
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 screen. It then writes those characters to stdout. The terminal, or (more usually these days) terminal emulator

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 mode, and in IDLE. However, when running

Re: Clearing a DOS terminal in a script

2007-12-13 Thread John Machin
On Dec 14, 3: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. Maybe you are using a different dos terminal. What is clear? C:\junkclear 'clear

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 listed!). Unfortunately, it is poor practice to hard code

Re: How to run script from interpreter?

2014-05-29 Thread Mark H Harris
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 ; character drops the julia prompt into shell. I think the IDLE

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
parsa mpsh added the comment: Well, some times we are writing a flexible Text ui program. we may use `clear` lot of times. This should be used when we haven't any valuable data on the screen. Also, who that uses this function, knows this will clear valuable data :). Sometimes also i use

[issue37745] 3.8b3 - windows install gui/ inconsistent options

2019-08-02 Thread Christopher Brousseau
that relates only to the "py launcher" checkbox. would be more clear for user if `for all users` was located below "py launcher", or removed from this screen (per note below) 3. third screen (Advanced Options) - `Install for all users` is UNchecked in all cases, even if fi

Re: os.system('cls')

2008-12-25 Thread 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 wondering where I can find al the commands which can be used for os.system(). I searched

RE: os.system('cls')

2008-12-25 Thread Barak, Ron
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 python tutorial it says os.system

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 screen etc. and found

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' or '-install',

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 clear screen (cls) from text and other content

Re: Unicode Pythonwin / win32 / console?

2006-01-09 Thread Martin v. Löwis
Robert wrote: I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem . to get unicode strings on the screen - best results according to the platform/language settings (mainly XP Home, W2K

Re: how to do draw pattern with python?

2012-09-21 Thread Peter Otten
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 previous post) There may be other problems -- I stopped reading http://en.wikipedia.org/wiki/ANSI_escape_code as soon as I

Re: pygame: transparency question

2012-05-30 Thread Ian Kelly
On Tue, May 29, 2012 at 9:33 AM, Scott Siegler scott.sieg...@gmail.com wrote: Hello, I have a surface that I load an image onto.  During a collision I would like to clear out the images of both surfaces that collided and show the score.   Is there a function call to clear a surface

[issue40711] Clearing the screen of IDLE interactive mode in Windows

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 and 3.6 only get security fixes. #6143 proposes to add special mechanism to clear Shell. It is a low priority for me as I very seldom want to, or if a editor is open, one can close the shell and start over when running the editor file. Clear an editor

  1   2   3   4   5   >