From 11f4d02e7020cb5775d2b89af0e652e53cd90ed7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 1 Oct 2014 19:52:23 +0100 Subject: 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. --- tools/genssl | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/genssl') 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 = ); -- cgit v1.2.3