diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-28 22:39:41 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-28 23:58:57 (EDT) |
commit | 95261e8fa0e96c7424afc6b7ee0788abe01579f1 (patch) | |
tree | dfda45a142eb819d683f6ff2e917bb0ce5f77935 /src | |
parent | b10b531b6e7280e131c899e0765f9150413f21cd (diff) | |
download | firman.sh-95261e8fa0e96c7424afc6b7ee0788abe01579f1.zip firman.sh-95261e8fa0e96c7424afc6b7ee0788abe01579f1.tar.gz firman.sh-95261e8fa0e96c7424afc6b7ee0788abe01579f1.tar.bz2 |
cli_show_prompt(): Accept len argument
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/cli.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/cli.sh b/src/ui/cli.sh index 55cf2fe..b341c9e 100644 --- a/src/ui/cli.sh +++ b/src/ui/cli.sh @@ -94,8 +94,9 @@ cli_show_menu() cli_show_prompt() { local title="${1}" + local len=${2} + shift 2 local input='' - shift 1 printf '%s\n' "${title}" >"${cli_tty}" { printf '%s\n' "${title}" | sed 's/./-/g'; } >"${cli_tty}" |