Set new prompt letter for terminal when reading data
use Term::ReadLine; $term = Term::ReadLine->new("Input"); $prompt = "%"; while (($line = $term->readline($prompt)) ne 'q') { $term->addhistory($line); print "You typed: $line\n"; }
1. | use Term::ReadKey; | ||
2. | ReadMode('cbreak'); | ||
3. | Get Terminal Size | ||
4. | Read password without displaying anything | ||
5. | use Term::ANSIColor; |