Skip to content

Commit

Permalink
enh: interactive: fix display
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Mar 20, 2024
1 parent 54321ff commit 3bc83fa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/perl/OVH/Bastion/interactive.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
Expand Down Expand Up @@ -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 ();
}
Expand Down

0 comments on commit 3bc83fa

Please sign in to comment.