Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm pretty sure that my notation for sending the needed control characters is incorrect. If anyone could point me in the right direction, it'd be much appreciated.#!/usr/local/bin/perl -w use Expect; use strict; # Debugging stuff. $Expect::Log_Stdout=1; $Expect::Debug=1; my $exp = Expect->spawn('curses-prog') or die "Cannot spawn curses-prog: $!\n"; if ($exp->expect(10, 'Menu item 1')) { print $exp "\0402" };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IBM scan codes (pgup, pgdn, arrow keys)
by Popcorn Dave (Abbot) on Jun 14, 2002 at 22:23 UTC | |
|
Re: IBM scan codes (pgup, pgdn, arrow keys)
by jlongino (Parson) on Jun 15, 2002 at 04:13 UTC | |
|
Re: IBM scan codes (pgup, pgdn, arrow keys)
by jepri (Parson) on Jun 14, 2002 at 22:51 UTC |