lkml.org 
[lkml]   [1999]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Changing the active console

On Tue, 16 Feb 1999, Roberto Fasciolo wrote:

> I'd like to know if it's possible changing the active console (the same
> thing that pressing CTRL+ALT+Fx) with a system call, and, if it's
> possible, how can I do that.

see the 'chvt' command:

open("/dev/tty", O_RDONLY) = 3
ioctl(3, KDGKBTYPE, 0xbffffcd3) = 0
ioctl(3, VT_ACTIVATE, 0x1) = 0
ioctl(3, VT_WAITACTIVE, 0x1) = 0

-- mingo



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:1.462 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site