* Re: Escape sequences & console
[not found] <"3a9e8dcd3b72e6a5@amyris.wanadoo.fr>
@ 2001-03-01 18:21 ` Simon Richter
2001-03-01 19:48 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Simon Richter @ 2001-03-01 18:21 UTC (permalink / raw)
To: Sébastien HINDERER; +Cc: linux-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".
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Escape sequences & console
2001-03-01 18:21 ` Escape sequences & console Simon Richter
@ 2001-03-01 19:48 ` H. Peter Anvin
0 siblings, 0 replies; 8+ messages in thread
From: H. Peter Anvin @ 2001-03-01 19:48 UTC (permalink / raw)
To: linux-kernel
Followup to: <Pine.LNX.4.31.0103011919490.23240-100000@phobos.fachschaften.tu-muenchen.de>
By author: Simon Richter <Simon.Richter@phobos.fachschaften.tu-muenchen.de>
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
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Escape sequences & console
@ 2001-03-01 19:03 Sébastien HINDERER
2001-03-01 20:01 ` Guest section DW
0 siblings, 1 reply; 8+ messages in thread
From: Sébastien HINDERER @ 2001-03-01 19:03 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Escape sequences & console
@ 2001-03-01 20:48 Sébastien HINDERER
2001-03-01 20:10 ` Guest section DW
0 siblings, 1 reply; 8+ messages in thread
From: Sébastien HINDERER @ 2001-03-01 20:48 UTC (permalink / raw)
To: linux-kernel
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 <Simon.Richter@phobos.fachschaften.tu-muenchen.de>
> A : Sébastien HINDERER <jrf3@wanadoo.fr>
> Cc : linux-kernel@vger.kernel.org
> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Escape sequences & console
2001-03-01 20:48 Sébastien HINDERER
@ 2001-03-01 20:10 ` Guest section DW
0 siblings, 0 replies; 8+ messages in thread
From: Guest section DW @ 2001-03-01 20:10 UTC (permalink / raw)
To: Sébastien HINDERER, linux-kernel
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.
?
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <"3a9ea6fa3b646cc9@citronier.wanadoo.fr>]
* Re: Escape sequences & console
[not found] <"3a9ea6fa3b646cc9@citronier.wanadoo.fr>
@ 2001-03-02 21:29 ` Simon Richter
2001-03-05 17:20 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Simon Richter @ 2001-03-02 21:29 UTC (permalink / raw)
To: Sébastien HINDERER; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Escape sequences & console
2001-03-02 21:29 ` Simon Richter
@ 2001-03-05 17:20 ` H. Peter Anvin
0 siblings, 0 replies; 8+ messages in thread
From: H. Peter Anvin @ 2001-03-05 17:20 UTC (permalink / raw)
To: linux-kernel
Followup to: <Pine.LNX.4.31.0103022208050.30419-100000@phobos.fachschaften.tu-muenchen.de>
By author: Simon Richter <Simon.Richter@phobos.fachschaften.tu-muenchen.de>
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
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-03-05 17:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <"3a9e8dcd3b72e6a5@amyris.wanadoo.fr>
2001-03-01 18:21 ` Escape sequences & console Simon Richter
2001-03-01 19:48 ` H. Peter Anvin
2001-03-01 19:03 Sébastien HINDERER
2001-03-01 20:01 ` Guest section DW
-- strict thread matches above, loose matches on Subject: below --
2001-03-01 20:48 Sébastien HINDERER
2001-03-01 20:10 ` Guest section DW
[not found] <"3a9ea6fa3b646cc9@citronier.wanadoo.fr>
2001-03-02 21:29 ` Simon Richter
2001-03-05 17:20 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox