John Wright wrote: > On Sun, May 28, 2006 at 05:52:49PM -0400, Daniel Dickman wrote: > > Does anyone know how to bind ^L to clear the screen in a default 3.9 > > installation? I'd prefer to not have to change to bash if I don't have to... > > Just for a bit of variety (since you've had lots of replies) I use this: > > bind -m ^L=clear^M > > Which types c l e a r RETURN where my cursor is.
Shells like zsh and bash also clear the screen while you are typing a line. So your solution works only fine at the start of a line. And adding a c-g or c-c won't help since it also interupts the macro. # Han