efi_loader: efi_console: support editable input fields
authorCasey Connolly <casey.connolly@linaro.org>
Thu, 23 Oct 2025 14:26:46 +0000 (16:26 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 26 Oct 2025 10:15:21 +0000 (10:15 +0000)
commit419cc25aa15784510a276f78441efbaf470b8577
treed95c26d66f2ca91701346f2f58be0a2512cee241
parent3cb97f929338f9373de6b41c4f2010357dd20778
efi_loader: efi_console: support editable input fields

When editing eficonfig "optional data" (typically cmdline arguments)
it's useful to be able to edit the string rather than having to re-type
the entire thing. Implement support for editing buffers to make this a
whole lot nicer. Specifically, add support for moving the cursor with
the arrow keys and End key as well as deleting backwards with the delete
key.

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/eficonfig.c
lib/efi_loader/efi_console.c