For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2005 > Getting started with Curses









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Getting started with Curses
Stuart Adams

2005-06-03, 8:55 pm

Hello.=20
I'm trying to get started with curses, so I wrote some code.
The first printw statement works fine, but it doesn't accept any input
afterwords.
Is there a special method needed to get input from the keyboard when
using curses?

Your help is greatly appreciated. Here is my script.

#!/usr/bin/perl -w
use Curses;

initscr();
printw "Enter the ID # now";
refresh();
while (<STDIN> ) {
printw $_;
}
endwin();
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com