bug-ncurses
[Top][All Lists]
Advanced

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

Re: X and ncurses / getch() and X-keyevents


From: Thomas Zauner
Subject: Re: X and ncurses / getch() and X-keyevents
Date: 15 Feb 2003 21:06:43 +0100

On Sat, 2003-02-15 at 20:42, Thomas Dickey wrote:
> 
> what window are you getting the X events from?  (that's probably not the
> problem, but I'm curious).  More likely the problem is interfering select
> calls in ncurses and the X library.
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net
> 
> 

well that's really sth. i would like not  to tell (LOL) because i think it's 
very poor. 

i start an xterm and my program within the xterm with a exec call like 
execl("/usr/bin/xterm","-e","/PATH/MYPROG",NULL);  
that way i make shure MYROG is really within an xterm.

then i connect to the X server and then get the window id from the environement 
like  win_id=getenv("WINDOWID")  , i know i should not
trust that and instead check the tree of all windows starting from the root 
window but it's a lot more work.  


i think it might be the event propagation that is in someway and only sometimes 
"wrong" but these thing are really hard to trace.  

btw i am on linux.

thx for your help
tom





reply via email to

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