diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/cli.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/cli.sh b/src/ui/cli.sh index 4b2854c..384ac6e 100644 --- a/src/ui/cli.sh +++ b/src/ui/cli.sh @@ -113,7 +113,11 @@ cli_show_prompt() printf '%s\n' "${title}" >"${cli_tty}" { printf '%s\n' "${title}" | sed 's/./-/g'; } >"${cli_tty}" - printf '\n> ' >"${cli_tty}" + if [ "x${input}" = 'x' ]; then + printf '\n> ' >"${cli_tty}" + else + printf '\n[%s] > ' "${input}" >"${cli_tty}" + fi read -r input printf '\n' >"${cli_tty}" printf '%s' "${input}" |