Skip to content

Commit 534c475

Browse files
author
Prasanna Kumar Kalever
committed
daemon-interactive: do not allow clearing the prompt
Typing somthing and then hitting backspace multiple-times would clear the prompt previously. This patch do not let backspace clear the prompt msg. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
1 parent d768df6 commit 534c475

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/targetcli

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ def switch_to_daemon(shell, interactive):
224224
inputs = []
225225
real_exit=False
226226
while True:
227-
shell.con.raw_write("%s> " %prompt_path)
228-
command = six.moves.input()
227+
command = six.moves.input("%s> " %prompt_path)
229228
if command.lower() == "exit":
230229
real_exit=True
231230
elif not command:

0 commit comments

Comments
 (0)