summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/board/ich9.sh2
-rw-r--r--src/ui/cli.sh5
-rw-r--r--src/ui/tui.sh6
3 files changed, 7 insertions, 6 deletions
diff --git a/src/board/ich9.sh b/src/board/ich9.sh
index fa12944..35d7e0d 100644
--- a/src/board/ich9.sh
+++ b/src/board/ich9.sh
@@ -24,7 +24,7 @@ ich9_prepare_rom()
# Get MAC address.
while :; do
- mac="$(show_prompt 'Enter MAC address' 17)"
+ mac="$(show_prompt 'Enter MAC address' '' 17)"
case "${mac}" in
*[!0-9a-zA-Z:]*)
continue
diff --git a/src/ui/cli.sh b/src/ui/cli.sh
index 369694c..4b2854c 100644
--- a/src/ui/cli.sh
+++ b/src/ui/cli.sh
@@ -105,8 +105,9 @@ cli_show_menu()
cli_show_prompt()
{
local title="${1}"
- local len=${2}
- shift 2
+ local input="${2}"
+ local len=${3}
+ shift 3
local input=''
printf '%s\n' "${title}" >"${cli_tty}"
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 75ef4e6..e0ae20b 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -327,15 +327,15 @@ tui_show_menu()
tui_show_prompt()
{
local title="${1}"
- local len=${2}
- shift 2
+ local input="${2}"
+ local len=${3}
+ shift 3
local w=
local y=
local x=
local i=
local iline=''
local bline=''
- local input=''
local curpos=0
local focus=0
local key=