bug-ncurses
[Top][All Lists]
Advanced

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

Re: Get ID of x-window


From: Egmont Koblinger
Subject: Re: Get ID of x-window
Date: Thu, 14 Aug 2014 13:35:25 +0200

Hi Patrick,

Indeed, if you have total control over the whole system, this approach might work.  Good luck!

May I ask: what graphical terminal emulator are you planning to choose?  Nowadays I'm contributing a lot to Gnome-Terminal/VTE, and recently I got to fix an accessibility bug (the screen reader would sometimes omit the first word) , there's one or two more to go in the bugtracker.  Unfortunately I don't have any experience in this topic, don't know how to test things and such.  If you happen to choose gnome-terminal (or any other terminal based on newest VTE) and rely on its a11y features, we can probably help each other if you encounter any bugs.

egmont


On Thu, Aug 14, 2014 at 1:27 PM, Patrick <address@hidden> wrote:
Thanks Egmont

The application is for an assisted speech device for disabled children. I will need to control everything, what OS, which font, which terminal and even which monitor but I think it can be done and if it fails a text only environment will still work. I would just like to make it useful for very young children that cannot recognize sight words.

Have a great day




On 14/08/14 07:20 AM, Egmont Koblinger wrote:
Hi,

$WINDOWID might be what you're looking for.

Note that whatever you do, it'll probably be an ugly hack that just happens to work with your favorite terminal at a hardcoded font size.  E.g. how would your X app figure out the terminal's font size?

Also, keep in mind that there are terminals that have multiple tabs and your one might not be the visible one (e.g. gnome-terminal -- also beware that it's known in gnome-terminal that if you drag-n-drop a tab to another gnome-terminal window then $WINDOWID becomes incorrect because it can't be updated); there are terminals with split screen feature (e.g. gnome terminator) and then how do you figure out the offset; etc...

e.


On Thu, Aug 14, 2014 at 2:47 AM, Patrick <address@hidden> wrote:
Hi Everyone !

I have been tinkering around with xwininfo and wmctrl but I was wondering if there was a better way to get the ID of the window that an ncurses application was running it?

With a little xcb I think I can write images to an ncurses application. I think I could allocate a given X Y space and just write around that space with ncurses.

Thanks


_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses




reply via email to

[Prev in Thread] Current Thread [Next in Thread]