Hi all,
Could someone tell me where I can find a document listing all the
escape-sequences that could be sent to the console (/dev/console) and what
they do.
Thank you: S?bastien.
On Thu, 1 Mar 2001, S?bastien HINDERER wrote:
> Could someone tell me where I can find a document listing all the
> escape-sequences that could be sent to the console (/dev/console) and what
> they do.
Please don't use those sequences directly, as not everyone has
/dev/console on a vt. You can find the information you want in your local
terminfo database under "linux".
Simon
--
GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
Fingerprint: DC26 EB8D 1F35 4F44 2934 7583 DBB6 F98D 9198 3292
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
NP: Inside Treatement - Klaustraph
OKAY, but something strange appears:
According to linux/drivers/console.c, function setterm_commands, case 12,
one can change the virtual console by sending an escape sequence to
/dev/cnsole (what I want to do), hower, this is not documented in man
pages.
Which escape-sequence should I send to /dev/console to switch tty?
Thank you: S?bastien.
----------
> De : Simon Richter <[email protected]>
> A : S?bastien HINDERER <[email protected]>
> Cc?: [email protected]
> Objet : Re: Escape sequences & console
> Date?: jeudi 1 mars 2001 18:21
>
> On Thu, 1 Mar 2001, S?bastien HINDERER wrote:
>
> > Could someone tell me where I can find a document listing all the
> > escape-sequences that could be sent to the console (/dev/console) and
what
> > they do.
>
> Please don't use those sequences directly, as not everyone has
> /dev/console on a vt. You can find the information you want in your local
> terminfo database under "linux".
>
> Simon
>
> --
> GPG public key available from
http://phobos.fs.tum.de/pgp/Simon.Richter.asc
> Fingerprint: DC26 EB8D 1F35 4F44 2934 7583 DBB6 F98D 9198 3292
> Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!
> NP: Inside Treatement - Klaustraph
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Followup to: <Pine.LNX.4.31.0103011919490.23240-100000@phobos.fachschaften.tu-muenchen.de>
By author: Simon Richter <[email protected]>
In newsgroup: linux.dev.kernel
>
> On Thu, 1 Mar 2001, S?bastien HINDERER wrote:
>
> > Could someone tell me where I can find a document listing all the
> > escape-sequences that could be sent to the console (/dev/console) and what
> > they do.
>
> Please don't use those sequences directly, as not everyone has
> /dev/console on a vt. You can find the information you want in your local
> terminfo database under "linux".
>
Well, don't use them directly without checking that $TERM is "linux".
Also, normally they should be sent to the current terminal (/dev/tty,
or just stdout) rather than /dev/console.
-hpa
--
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
On Thu, Mar 01, 2001 at 07:03:50PM -0000, S?bastien HINDERER wrote:
> Could someone tell me where I can find a document listing the
> escape-sequences that could be sent to the console and what
> they do.
man console_codes
On Thu, Mar 01, 2001 at 08:48:10PM -0000, S?bastien HINDERER wrote:
> According to linux/drivers/console.c, function setterm_commands, case 12,
> one can change the virtual console by sending an escape sequence to
> /dev/cnsole (what I want to do), hower, this is not documented in man
> pages.
Hmm. How come I read
ESC [ 12 ; n ] Bring specified console to the front.
?
On Thu, 1 Mar 2001, S?bastien HINDERER wrote:
> According to linux/drivers/console.c, function setterm_commands, case 12,
> one can change the virtual console by sending an escape sequence to
> /dev/cnsole (what I want to do), hower, this is not documented in man
> pages.
>From the source of the chvt program:
if (ioctl(fd,VT_ACTIVATE,num)) {
perror("chvt: VT_ACTIVATE");
exit(1);
}
if (ioctl(fd,VT_WAITACTIVE,num)) {
perror("VT_WAITACTIVE");
exit(1);
}
Where fd is /dev/tty, /dev/tty0, /dev/console or std{in,out,err} (From the
source, I doubt this ioctl works on all of those).
Simon
--
GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
Fingerprint: DC26 EB8D 1F35 4F44 2934 7583 DBB6 F98D 9198 3292
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
UP: 10:29pm up 7 days, 3:40, 8 users, load average: 3.67, 4.43, 4.69
Followup to: <Pine.LNX.4.31.0103022208050.30419-100000@phobos.fachschaften.tu-muenchen.de>
By author: Simon Richter <[email protected]>
In newsgroup: linux.dev.kernel
>
> From the source of the chvt program:
>
> if (ioctl(fd,VT_ACTIVATE,num)) {
> perror("chvt: VT_ACTIVATE");
> exit(1);
> }
> if (ioctl(fd,VT_WAITACTIVE,num)) {
> perror("VT_WAITACTIVE");
> exit(1);
> }
>
> Where fd is /dev/tty, /dev/tty0, /dev/console or std{in,out,err} (From the
> source, I doubt this ioctl works on all of those).
>
/dev/tty0 would be the correct device (tty0 = current virtual
console.)
-hpa
--
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
I would say the escape sequence are for /dev/ttyX since only Vt emulate
Dec VT 100s. The web site to look for this info is http://www.vt100.net
MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.
James Simmons [[email protected]] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net