
From: Simon Glass <sjg@chromium.org> Call the appropriate vidconsole functions to ensure that the cursor will be enabled while a textline is open. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/scene_textline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boot/scene_textline.c b/boot/scene_textline.c index b595d3477e4..ba39cfb7cee 100644 --- a/boot/scene_textline.c +++ b/boot/scene_textline.c @@ -145,6 +145,9 @@ int scene_textline_send_key(struct scene *scn, struct scene_obj_textline *tline, /* Copy the backup text from the scene buffer */ memcpy(abuf_data(&tline->buf), abuf_data(&scn->buf), abuf_size(&scn->buf)); + + /* cursor is not needed now */ + vidconsole_readline_end(); } else { event->type = EXPOACT_QUIT; log_debug("menu quit\n"); @@ -241,5 +244,8 @@ int scene_textline_open(struct scene *scn, struct scene_obj_textline *tline) if (ret) return log_msg_ret("sav", ret); + /* make sure the cursor is visible */ + vidconsole_readline_start(true); + return 0; } -- 2.43.0