use Term::ReadKey; : Term « System Functions « Perl






use Term::ReadKey;

    



use Term::ReadKey;

ReadMode('cbreak');

$char = ReadKey(0);

ReadMode('normal');

print "You typed: $char.\n";

   
    
    
    
  








Related examples in the same category

1.ReadMode('cbreak');
2.Get Terminal Size
3.Set new prompt letter for terminal when reading data
4.Read password without displaying anything
5.use Term::ANSIColor;