Followup to:
<[EMAIL PROTECTED]>
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
-
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/