summaryrefslogtreecommitdiff
path: root/tools/genssl
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2014-10-01 19:52:23 +0100
committerPeter Powell <petpow@saberuk.com>2014-12-07 22:36:42 +0000
commit11f4d02e7020cb5775d2b89af0e652e53cd90ed7 (patch)
tree17bc1cc90d178cd470c60a421ef7e947fb94b9c9 /tools/genssl
parent48f8f79317a04891e2becd859363add6eb2d6444 (diff)
Add Perl module for console related code.
- Move prompt_* methods to this module. - Add methods for printing errors and warnings easily. - Add colour code helpers and switch all code to use them.
Diffstat (limited to 'tools/genssl')
-rwxr-xr-xtools/genssl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/genssl b/tools/genssl
index 073caa8f4..13b1f01fc 100755
--- a/tools/genssl
+++ b/tools/genssl
@@ -35,6 +35,7 @@ use File::Temp();
sub prompt($$) {
my ($question, $default) = @_;
+ return prompt_string(1, $question, $default) if eval 'use make::console; 1';
print "$question\n";
print "[$default] => ";
chomp(my $answer = <STDIN>);