9 lines
140 B
Perl
9 lines
140 B
Perl
|
system "stty cbreak </dev/tty >&1";
|
||
|
|
||
|
print ">";
|
||
|
|
||
|
while (($char = getc) ne 'q') {
|
||
|
print "\n";
|
||
|
print "You typed $char\n>";
|
||
|
}
|