From 534c4759fc27e7ef8e1d477b4909485d2ac4bf91 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 7 Apr 2020 12:36:59 +0530 Subject: 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 --- scripts/targetcli | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/targetcli b/scripts/targetcli index 1c2046f..f00bffc 100755 --- a/scripts/targetcli +++ b/scripts/targetcli @@ -224,8 +224,7 @@ def switch_to_daemon(shell, interactive): inputs = [] real_exit=False while True: - shell.con.raw_write("%s> " %prompt_path) - command = six.moves.input() + command = six.moves.input("%s> " %prompt_path) if command.lower() == "exit": real_exit=True elif not command: -- cgit v1.2.1