Pic has asked for the wisdom of the Perl Monks concerning the following question:
Inside this loop, I'm trying to see if the user presses one of the arrow keys, and from the ncurses tutorial I've been reading (which is for C), it looks like the way to do it is either $in == KEY_LEFT or $in eq KEY_LEFT in the case of the left arrow key. However, this gracefully completely fails to work.while ( my $in = $main->getch () ) { # Do stuff here. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Arrow keys with Curses.pm
by caelifer (Scribe) on Oct 13, 2006 at 01:15 UTC | |
by Pic (Scribe) on Oct 13, 2006 at 09:02 UTC | |
|
Re: Arrow keys with Curses.pm
by doowah2004 (Monk) on Oct 12, 2006 at 21:33 UTC | |
|
Re: Arrow keys with Curses.pm
by sgifford (Prior) on Oct 12, 2006 at 22:20 UTC |