State sleeping when using autoclose

Tell the user the length of time the terminal is sleeping for before closing otherwise it looks a little odd when the terms don't close quickly
This commit is contained in:
Duncan Ferguson 2011-12-15 13:18:49 +00:00
parent a8e68a461b
commit a0cb18da7b

View file

@ -27,7 +27,7 @@ sub script {
my $command = $config->{command};
my $autoclose = $config->{auto_close};
my $postcommand = $autoclose ? "sleep $autoclose" : "echo Press RETURN to continue; read IGNORE"; # : "sleep $autoclose";
my $postcommand = $autoclose ? "echo Sleeping for $autoclose seconds; sleep $autoclose" : "echo Press RETURN to continue; read IGNORE"; # : "sleep $autoclose";
# # P = pipe file
# # s = server