[Top][All Lists]

[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:20:15 +0200


$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...


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.


Bug-ncurses mailing list

reply via email to

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