in reply to Re^2: Curses::UI loop dilemma
in thread Curses::UI loop dilemma

The default if nothing is passed to get_key is 0, but Curses::UI passes -1 (full blocking) by default.

By the way, I just noticed -mouse_support is 1 by default, so you'll either have to pass -mouse_support => 0 to the constructor, or do $cui->{-read_timeout} = 0 (which might break mouse support).

Replies are listed 'Best First'.
Re^4: Curses::UI loop dilemma
by Anonymous Monk on Sep 18, 2005 at 20:15 UTC
    My constructor was:
    my $cui = Curses::UI->new( -mouse_support => 0, -read_timeout => 0, -color_support => 1, -clear_on_exit => 1, );
    So that should have worked... should... :(