[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to determine the VT of a running X session?



On 2/15/06, Marc Shapiro <mshapiro_42@yahoo.com> wrote:
> Is there any way to determine the virtual terminal that an X session is
> running on?

$ man -k vt
...
fgconsole (1)        - print the number of the active VT.
...

It seems to need super user privileges though.  I can see why super
user privileges should be necessary for chvt but not fgconsole.  Does
anyone know why or should it be reported as a "bug".

--Dave

Reply to: