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 library ‘readline’ mod

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'd like to clear