Send ctrl+l to tty

Hi,

I want to send ctrl+l (^L) to some TTY from the command line. I have tried this:

Code:
[CMD=#]echo -n "^L" > /dev/ttyv0[/CMD]
(the ^L was typed by ctrl+v, ctrl+l)

but that doesn't work. It only moves the cursor on ttyv0 one line down, when I need to clean the screen. Please, does anyone know how to do it?
 
I didn't want do admit it, because it's lame approach, but I will explain it. I have vtclock ("fullscreen" console clock) running on ttyv0 and kernel messages and other processes are writing over the screen. I need to somehow send vtclock (or the shell on ttyv0?) to redraw the screen periodically (or redirect kernel messages somewhere else?).
 
pbd said:
I need somehow send vtclock (or the shell on ttyv0?) to redraw the screen periodically (or redirect kernel messages somewhere else?).

That last one is easy to achieve, just comment this line in /etc/syslog.conf and restart syslogd:
Code:
*.err;kern.warning;auth.notice;mail.crit                /dev/console
 
  • Thanks
Reactions: pbd
Back
Top