[Concept,08/36] expo: Add CLI line state to text-input objects

Message ID 20260120231814.2033069-9-sjg@u-boot.org
State New
Headers
Series video: Add multiple-context support to vidconsole (part F) |

Commit Message

Simon Glass Jan. 20, 2026, 11:17 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add a struct cli_line_state member to struct scene_txtin to hold the
line-editing state for each text-input object. This allows each object
to maintain its own editing context.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 include/expo.h | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/include/expo.h b/include/expo.h
index 248f2363fe1..afaf1e8d107 100644
--- a/include/expo.h
+++ b/include/expo.h
@@ -509,12 +509,14 @@  struct scene_menitem {
  * @edit_id: ID of the editable text object (not string ID)
  * @line_chars: Nominal number of characters in a line
  * @buf: Text buffer containing current text
+ * @cls: CLI line state for text editing
  */
 struct scene_txtin {
 	uint label_id;
 	uint edit_id;
 	uint line_chars;
 	struct abuf buf;
+	struct cli_line_state cls;
 };
 
 /**