| Message ID | 20250919201507.4024144-28-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313017; bh=Ja8EjVd/sFqu29W/ZwJyMg1Ih647DijdnIWX6GyxSpw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rlt7/Fspq/cqAn9jKve7ZfVReuBK0Gsd704XYW5lQ+o7bF99jVSzyqwNdGs/2DMgN eJZECsvY/JLES3GExkgiPSdVObWOAzo9l57z1Qu/CWY3zDGM0ZJkH6rDyafJ+B97gN FWrGr9fpSJhcWI74Bs/U34ecGWsAHqPTH6lzXGm6eKxIcz/uX8iVA1YgCz39/LLp5n xvSWXzPEMrsgrBGP3H5S0jwGGUpkCH5ExKoiuSrFKkfz/2Q/KcVZW3IffoiAxWFnnl rMfZKn/RTlLCJATWEDUjvbusSqiaUguRUF5mVHxdjKEkeOME85wwx96LYmio/gDR9g bPH7ISBzwQV/Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 45D5E67C0E for <u-boot-concept@u-boot.org>; Fri, 19 Sep 2025 14:16:57 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id B3FdzxwKgx87 for <u-boot-concept@u-boot.org>; Fri, 19 Sep 2025 14:16:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313017; bh=Ja8EjVd/sFqu29W/ZwJyMg1Ih647DijdnIWX6GyxSpw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rlt7/Fspq/cqAn9jKve7ZfVReuBK0Gsd704XYW5lQ+o7bF99jVSzyqwNdGs/2DMgN eJZECsvY/JLES3GExkgiPSdVObWOAzo9l57z1Qu/CWY3zDGM0ZJkH6rDyafJ+B97gN FWrGr9fpSJhcWI74Bs/U34ecGWsAHqPTH6lzXGm6eKxIcz/uX8iVA1YgCz39/LLp5n xvSWXzPEMrsgrBGP3H5S0jwGGUpkCH5ExKoiuSrFKkfz/2Q/KcVZW3IffoiAxWFnnl rMfZKn/RTlLCJATWEDUjvbusSqiaUguRUF5mVHxdjKEkeOME85wwx96LYmio/gDR9g bPH7ISBzwQV/Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 35EF167C5B for <u-boot-concept@u-boot.org>; Fri, 19 Sep 2025 14:16:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313016; bh=Zq3Sb/T9BBN1fXcp6kuboptfaKV+xaUCj+21zigJA5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Clih+e623Kg7gAeme3quy115up7Hur+OxNUbaDmHp62MII/oT3Rm3wgc6R5BIvcH5 U2Od4TqKqt+B2krdkDbcZ+aHJhENfphr9YteCJT9RKh0Ke4AzhnwPntqzA6I5fYgpi n4DfcdDabK/nUS8CpHl7EGXAmLzGQP7yoawjjAjkrDBs8rfYP4LUWRbLVdoS3JcKc0 UXqhqAbGlYzDRPdc8JcvnLeq5YLYUENpn7DEmZjJ7OTybuyryhxhJN8uE2NZ69FX4W hbEqFXGWP+Tjk0S+24F3jAVnSsXvZMgqELR6m0MT0+/JrmSncHyz9gd84pQdRwAVTF GFmh4uisj2USQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3C5DB67BFC; Fri, 19 Sep 2025 14:16:56 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id MMu7A_2uYqGV; Fri, 19 Sep 2025 14:16:56 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313013; bh=SdTUqfw0NxfM193ZPjc9AOdiqQ77ZARuBjoyCYu5lMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fnniCVOFXGX9h3vri7mo9b29GgGrB8C46mcsMjsI8J3rG8FQC6FeB6rQqT5RkDyWX 5bMMmboV52wv4gFO3XN36zMixnYrtmo6N8QWvtyp9LJdFE2W33dlaYFalEJldacQvo Z8Lz13/WMGDs2EVLubif1arqSDJWawKju4fN9ExQFh1XnFihvUmAgs9wOF91Go9BXm Oe2SSseU6/fWirxnkEDsEkhid10uVIH5uRpGpeU/7jNzYqlW/LbwwfO77LSitiXuH+ V5Yi80/pLNh5exAx664kxvERz16F+zzVqlW9rOiM9mT/fX11wDGv9MEKtMaOjNlPwF HHLzY9Hhe7BQw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id B729067A99; Fri, 19 Sep 2025 14:16:52 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 19 Sep 2025 14:14:34 -0600 Message-ID: <20250919201507.4024144-28-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250919201507.4024144-1-sjg@u-boot.org> References: <20250919201507.4024144-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6KHQUNOTRH53NHACUKBNEYVFZ4Q5RWDF X-Message-ID-Hash: 6KHQUNOTRH53NHACUKBNEYVFZ4Q5RWDF X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 27/42] expo: Enable the cursor when editing a textline List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/6KHQUNOTRH53NHACUKBNEYVFZ4Q5RWDF/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
video: Support a cursor more generally
|
|
Commit Message
Simon Glass
Sept. 19, 2025, 8:14 p.m. UTC
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; }