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: Patrick
Subject: Re: Get ID of x-window
Date: Thu, 14 Aug 2014 07:27:32 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.7.0

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]