On Sun, 25 Jan 2004, Samuel Thibault wrote:

> Hi,
> 
> 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
> > 
> > in the .xinitrc/.xsession is quite reliable, but a bit hairy... Dave
> > proposed that it be recorded as a property, which is quite fine to my
> > mind. Could this be done before 4.3.0 ?

First working hack at
        http://homepage.ntlworld.com/a.c.aitchison/VTprop.patch

-- 
Andrew C Aitchison




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

Reply via email to