From 3bc83fae8e99af023d80aa26c23988753778f2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 18 Mar 2024 17:02:56 +0000 Subject: [PATCH] enh: interactive: fix display --- lib/perl/OVH/Bastion/interactive.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/perl/OVH/Bastion/interactive.inc b/lib/perl/OVH/Bastion/interactive.inc index 5f9fde2aa..f8ec12748 100644 --- a/lib/perl/OVH/Bastion/interactive.inc +++ b/lib/perl/OVH/Bastion/interactive.inc @@ -30,13 +30,6 @@ sub _get_prompt { return $prompt; } -sub _get_prompt_non_readline { - my %info = @_; - my $prompt_non_readline = _get_prompt(%info); - $prompt_non_readline =~ s=\001|\002==g; - return $prompt_non_readline; -} - sub interactive { my %params = @_; my $realOptions = $params{'realOptions'}; @@ -190,7 +183,7 @@ EOM if ($item->{'pr'}) { print "\n" . join("\n", @{$item->{'pr'}}) . "\n" - . _get_prompt_non_readline($self, $bastionName, $slaveOrMaster) + . _get_prompt($self, $bastionName, $slaveOrMaster) . $line; return (); }