http://www.perlmonks.org?node_id=399500

beretboy has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to write a menu program that can be launched from the command line and take up the entire screen. Thus far I've been successful with the exception of two problems. The X cursor floats irritatingly in the center of the screen and the focus isn't on the window. This is for an arcade cabinet, so this Tk app needs to grab the focus immedieatly without user intervention. The X11 modules look promising, but I've been unable to figure out how to use them to solve the aforementioned problems. Thoughts?


"Sanity is the playground of the unimaginative" -Unknown

Replies are listed 'Best First'.
Re: Arcade Menu (Fullscreening a Tk App)
by roju (Friar) on Oct 15, 2004 at 21:07 UTC
    Check out Tk::CursorControl. I believe you want to do
    use Tk::CursorControl; $cursor = $main->CursorControl; #hide the cursor when it is over $widget $cursor->hide($widget);
    over your main window.
Re: Arcade Menu (Fullscreening a Tk App)
by qumsieh (Scribe) on Oct 15, 2004 at 17:33 UTC
    Hmm .. what do you mean by the X cursor floating in the center of the screen? Can you show us your code? It's really hard to figure out what's wrong without it.