[BRLTTY] Using BrlAPI clients in tmux (wass: Linux console hacking (was: Re: Footsteps towards better accessibility in Linux))

Dave Mielke Dave at mielke.cc
Wed Apr 8 18:25:20 UTC 2026


[quoted lines by Samuel Thibault on 2026/04/08 at 19:40 +0200]

>It could be using the same non-root approach as libbrlapi: open
>/proc/self/stat and check the tty major/minor of the controlling tty,
>see getControllingTty()

Perhaps by following the chain to the top. stat[6] is the controlling tty for the current process which, inside tmux, is a pty. WINDOWPATH needs to be the controlling tty of tmux itself, which I don't think it exposes.

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://mielke.cc/xmother.html (Letter from a Feminist ex-Mother)


More information about the BRLTTY mailing list