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

... also, your description of the get_key() function said:

The default is 0 (non-blocking key read)

So no wonder that it doesn't change anything... it should have worked from the beginning on...

Replies are listed 'Best First'.
Re^3: Curses::UI loop dilemma
by ikegami (Patriarch) on Sep 18, 2005 at 19:30 UTC

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

      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... :(