On Sun, 25 Jan 2004, Samuel Thibault wrote:

> It's been a while since I proposed this:

> Le mar 05 aoû 2003 23:09:13 GMT, Samuel Thibault a tapoté sur son clavier :
> > We are currently developping X access to braille devices thanks to
> > gnopernicus connected to the standard text console reader brltty,
> > through BrlAPI. But for this to work (avoid conflicts with text console
> > reading), we need to know on which VT the X server is running.

> > Currently, there is no way to get this information from the server: X11
> > protocol doesn't have any native request for this. Parsing the logfile
> > like this:

> > CONTROLVT="$(grep "using VT number" "/var/log/XFree86.$(echo "$DISPLAY" | sed -e 
> > "s/^.*::*\([0-9]*\).*$/\1/").log" | sed -e "s/^.*using VT number 
> > \([0-9]*\).*$/\1/")"
> > export CONTROLVT

With a reasonably recent installation of the kbd package on Linux, it'd be
simpler to ...

        export CONTROLVT=`fgconsole`

Marc.

+----------------------------------+-----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310           |
|  Computing and Network Services  |  fax:    1-780-492-1729           |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]          |
|  University of Alberta           +-----------------------------------+
|  Edmonton, Alberta               |                                   |
|  T6G 2H1                         |     Standard disclaimers apply    |
|  CANADA                          |                                   |
+----------------------------------+-----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.


_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to