[python-win32] Clear the interactive screen

Mark Hammond skippy.hammond at gmail.com
Sat Apr 2 08:39:49 CEST 2011

On 1/04/2011 1:24 AM, Blockheads Oi Oi wrote:
> This is what I set up.
> c:\Python27\Lib\site-packages\pythonwin\pywin>type mine.cfg
> [General]
> BasedOn = Default

If you check out idle.cfg, it has with:

Based On          = default

Note the space.

> This will clear the screen but there's no interactive prompt. Then type
> any command you like and nothing happens,no errors, no output, zilch.
> But you can select what you've typed with Ctrl-A and copy it with
> Ctrl-C, which is exactly what I've done with the following three lines.

Yeah - it sounds like the default config isn't being loaded.

> Ctrl-R or Ctrl-Shift-R work fine for me but they're not in the default
> config *FILE* as per:-
> c:\Python27\Lib\site-packages\pythonwin\pywin>grep -i Ctrl default.cfg

Right - I think they just predate the ability to have a config file and 
were never "ported".  If this is inconvenient for you I'd be happy to 
accept a patch which moves them into that file.



More information about the python-win32 mailing list