Software switch from /dev/tty1 to /dev/tty2

Sébastien Lefebvre <[email protected]> Mon, 23 Feb 2004 09:56:03 +0100
Newsgroups gmane.linux.console
Message-ID <[email protected]>
Hi !

Does anyone know how to switch from /dev/tty1 to /dev/tty2 with Bash ?
Here is my setup, this could give you other ideas for alternative 
solutions :


I boot using a full screen framebuffer on /dev/tty1
The "active" console is /dev/tty2 (which receives the boot logs).
Then, using /etc/init.d, I launch a script (as I defined CONSOLE and 
console to /dev/tty1 in lilo.conf, every output is still displayed on 
/dev/tty2).

Then, I could either :

-Display a message on /dev/tty1 (this requires to clear the framebuffer, 
how to do that ?)

or

-switch to console /dev/tty1 within my script.

Thanks  a lot for any idea,

Sébastien


-
To unsubscribe from this list: send the line "unsubscribe linux-console" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html