Re: getting ^L to clear the screen?

2006-05-29 Thread John Wright
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

Re: getting ^L to clear the screen?

2006-05-29 Thread Han Boetes
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)

Re: getting ^L to clear the screen?

2006-05-29 Thread Bertrand Janin
Han Boetes wrote : John Wright wrote: 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

Re: getting ^L to clear the screen?

2006-05-28 Thread Christian Weisgerber
Daniel Dickman [EMAIL PROTECTED] wrote: Does anyone know how to bind ^L to clear the screen in a default 3.9 installation? You can't, at the shell prompt. ksh can't do that. Run clear(1). -- Christian naddy Weisgerber [EMAIL PROTECTED]

Re: getting ^L to clear the screen?

2006-05-28 Thread Claus Assmann
On Sun, May 28, 2006, Christian Weisgerber wrote: Daniel Dickman [EMAIL PROTECTED] wrote: Does anyone know how to bind ^L to clear the screen in a default 3.9 installation? You can't, at the shell prompt. ksh can't do that. What's wrong with alias =clear It works for me

Re: getting ^L to clear the screen?

2006-05-28 Thread Paul de Weerd
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... Please note that when using emacs editing mode (I think this is the default mode,

Re: getting ^L to clear the screen?

2006-05-28 Thread Christian Weisgerber
Paul de Weerd [EMAIL PROTECTED] wrote: A last option would be to send a patch for ksh that adds a clearscreen command to bind to. Send it here and it'll probably get more attention from developers. This is left as an excercise to you ;) This would require linking ksh to libtermcap, growing it

Re: getting ^L to clear the screen?

2006-05-28 Thread Christian Weisgerber
Claus Assmann [EMAIL PROTECTED] wrote: What's wrong with alias =clear It works for me (OpenBSD 3.8, /bin/ksh). How? You enter ^V^Lreturn? That's probably not what the original poster asked for, given the mention of bash. -- Christian naddy Weisgerber

Re: getting ^L to clear the screen?

2006-05-28 Thread Claus Assmann
On Mon, May 29, 2006, Christian Weisgerber wrote: Claus Assmann wrote: What's wrong with alias =clear It works for me (OpenBSD 3.8, /bin/ksh). How? You enter ^V^Lreturn? That's probably not what the original The alias is in .kshrc. I just it CNTL-L on the command prompt and