Re: ctrl-l in bash
From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 10/05/03
- Next message: Silviu Minut: "Re: ctrl-l in bash"
- Previous message: Alan Connor: "Re: ctrl-l in bash"
- In reply to: Silviu Minut: "ctrl-l in bash"
- Next in thread: mjt: "Re: ctrl-l in bash"
- Reply: mjt: "Re: ctrl-l in bash"
- Reply: Silviu Minut: "Re: ctrl-l in bash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 5 Oct 2003 20:19:42 GMT
On Sun, 05 Oct 2003 16:03:42 -0400, Silviu Minut staggered into the
Black Sun and said:
> How do I echo ctrl-l in bash?
echo "^V^L"
(Remember, ^V means "Ctrl-V". ^V followed by any character will insert
that character literally, if you haven't changed your default settings
using stty.)
> Or in a C program, for that matter.
putchar('\f');
> looked at the "Advance Bash-scripting Guide" and the examples there
> don't work.
What are you attempting to achieve by echoing ^L to the screen? It
doesn't do much useful that I can see here (konsole 1.2.3, terminal type
"xterm") but maybe there's something I'm missing. If you're trying to
clear the screen, system("clear"); or the appropriate ncurses function
would be a better way of doing that.
-- Matt G|There is no Darkness in Eternity/But only Light too dim for us to see Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong http://www.brainbench.com / "He is a rhythmic movement of the -----------------------------/ penguins, is Tux." --MegaHAL
- Next message: Silviu Minut: "Re: ctrl-l in bash"
- Previous message: Alan Connor: "Re: ctrl-l in bash"
- In reply to: Silviu Minut: "ctrl-l in bash"
- Next in thread: mjt: "Re: ctrl-l in bash"
- Reply: mjt: "Re: ctrl-l in bash"
- Reply: Silviu Minut: "Re: ctrl-l in bash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|