On 4/11/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > On Tue, 2006-11-04 at 11:01 -0700, Gavin Bowlby wrote: > > Short of learning Perl-curses or writing a full-blown TK-Perl app, are > > there any simple techniques - (read: minimum learning time) that I can > > use to implement a "protect command prompt" or "retrieve up-arrow key > > indication" function? > > No, there are no simple techniques. > > Two choices: > > use POSIX > See `perldoc POSIX` and search for 'termio'. > > use Term::ReadKey; > See http://search.cpan.org/~jstowe/TermReadKey-2.30/ > > Hint: the POSIX stuff is harder to follow (OK, it's all hard to follow). >
And tedious. if you're not doing much of it, see perldoc -f getc for a non-portable suggestion. If you really need to do this, both Term::Readkey and Posxi termois will work, as suggested, but take a serious look at curses. It's really not that bad and gives you as much flexibilty and control as you'll ever need. HTH, -- jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org values of β will give rise to dom!