Mac 10.9 window focus issue running the examples

I hope I’m not necroing here, but I am also having this issue as the original poster, running OSX 10.9.1.

Unfortunately, unlike the original poster, the issue is not resolved by using the special build of 1.9.0 provided by user rdb. That version simply creates a new error, indicating that no valid displays are named in the config file. I checked the config file, and it does include an uncommented line;

load-display pandagl

I’ve also tried 1.81, 1.91, 2.00, and 2.04, to no avail; all keypresses fall through to the terminal that invoked the example, producing these symbols;

^[[D^[[C^[[A^[[D^[[C^[[A^[[D^[[C^[[A^[[D^[[C^[[A^[[D^[[C^[[A^[[D^C*

If I change focus to another window, and then back to the example, focus is then given to whichever other window I clicked. For example, the arrow keys will navigate through a finder window instead of influencing a terminal window. I updated to 10.9.2, and am still facing the same issue.

I even tried making the files executable .command files and also running them directly through the python binary via the finder, and in those cases keypresses still fell through to the terminal and Finder, respectively. Mouse-based examples fare much better, though there’s a bit of a precision issue (which can be dealt with later.)

Console output when I launch an example;

4/19/14 12:26:19.807 PM WindowServer[120]: Received display connect changed for display 0x4280882
4/19/14 12:26:19.831 PM WindowServer[120]: Found 62 modes for display 0x04280882 [36, 26]
4/19/14 12:26:19.884 PM WindowServer[120]: Received display connect changed for display 0x3f003f
4/19/14 12:26:19.884 PM WindowServer[120]: Found 1 modes for display 0x003f003f [1, 0]
4/19/14 12:26:19.885 PM WindowServer[120]: Received display connect changed for display 0x3f0040
4/19/14 12:26:19.885 PM WindowServer[120]: Found 1 modes for display 0x003f0040 [1, 0]
4/19/14 12:26:19.885 PM WindowServer[120]: Received display connect changed for display 0x3f0041
4/19/14 12:26:19.885 PM WindowServer[120]: Found 1 modes for display 0x003f0041 [1, 0]
4/19/14 12:26:19.887 PM WindowServer[120]: CGXMuxAcknowledge: Posting glitchless acknowledge
4/19/14 12:26:19.901 PM WindowServer[120]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x04280882 device: 0x7fc0fb80bd90  isBackBuffered: 0 numComp: 1 numDisp: 3
4/19/14 12:26:19.932 PM WindowServer[120]: Received display connect changed for display 0x4280882
4/19/14 12:26:19.932 PM WindowServer[120]: Found 1 modes for display 0x04280882 [1, 0]

(Not one line of which seems to address input.)

Any idea what’s going on or how I can fix this? Thanks.