From patchwork Thu Jan 22 04:11:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1761 Return-Path: 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=1769055138; bh=7048jpdLtrRp+aDglourQTZ93M0pClO+ZhQu2BE6z34=; 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=bRy4Mwbd/8OzZT6Go2tj1vfVy/bmYfraJ97QBYHoBeERXZwPvpBeuhItICIEI8YPY ac50QEE0MFpCRAl5IU1rhVFuik8FE+s/7GUur76G4uT2MDiG0zoN7w16ZmEOp8nZH2 FhX8Jhx3hueZNSFLixQRsMvzQjbHlJCGiOy7iuHunXPpmUjAgecditwtNQyT+b2aj3 8D4sSmw9X07yf3dPhhIQwG/OvHgIcCwcoE1942NSqrrox7Bvlcw9xZNQA1W+gtGCsg HRgvYYPcFzQ/eYkueOHWSiAKYD89DVkQHXIJvP/iMRsuo969GbcHnUZA2dC0QedAhV PoXOTPwM50eBw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6266A6962C for ; Wed, 21 Jan 2026 21:12:18 -0700 (MST) 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 Y8WkFqN0qQSC for ; Wed, 21 Jan 2026 21:12:18 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769055138; bh=7048jpdLtrRp+aDglourQTZ93M0pClO+ZhQu2BE6z34=; 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=bRy4Mwbd/8OzZT6Go2tj1vfVy/bmYfraJ97QBYHoBeERXZwPvpBeuhItICIEI8YPY ac50QEE0MFpCRAl5IU1rhVFuik8FE+s/7GUur76G4uT2MDiG0zoN7w16ZmEOp8nZH2 FhX8Jhx3hueZNSFLixQRsMvzQjbHlJCGiOy7iuHunXPpmUjAgecditwtNQyT+b2aj3 8D4sSmw9X07yf3dPhhIQwG/OvHgIcCwcoE1942NSqrrox7Bvlcw9xZNQA1W+gtGCsg HRgvYYPcFzQ/eYkueOHWSiAKYD89DVkQHXIJvP/iMRsuo969GbcHnUZA2dC0QedAhV PoXOTPwM50eBw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4FF9269628 for ; Wed, 21 Jan 2026 21:12:18 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769055136; bh=dTBGCVVnlztztDyaCYwnHDa5hnHenDIqNmP22f+91rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m6XGfQQP2jxS+GESPWQr5C7DNGRkrYHIEEI0igQGt4g2EmOtDaIcFeWjdVQO72KBe j4UIOn7Px/tI5zqgXR1NmZJWi2kAwPo4Cy6A3R0EjhhlvSVbeIR2j2sT08osepq8hQ F5407kC0XPCXw0oyE/WoMZJSBvf5Pm39rFF3yjMm6F7FxIRTwNVXAKP34Q8DBg98aW 3k/uVV/L3Hd6IxHLierBRxpA/LAShkaDJ0uqXwBZqlwhENaMK8bX75q60Xd5y9tJaa C7SrtSvD48ulzSPWuuI/ajMr3jUrVHdC/7QI8zvwrMmwEi5huZfb/94rZM8AfO2e4p 88cD0RQ3hy3fw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E5953694CC; Wed, 21 Jan 2026 21:12:16 -0700 (MST) 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 kJw5zPd1LqOC; Wed, 21 Jan 2026 21:12:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769055132; bh=prmocH9srSrx+A9aDmB0tGs31yM3niqz9VA6VTfu1Hk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=flYXlw4RTHGT5iU0JkLuM3YIIHXI2v8ouQzavEfDSJLbqxFymG1lXSt7cE+M8NhO8 ScXqCJ/GFkhbVRtyLSiRfi+TaoKkjlzn0lbCcsOcDzByXQW2dWn/5OFY8k3lgvSkiZ fZcYlb/by1YnvhpUhwhpT7qUckRS2RgM5el0ufuexRtqyRNGA9XlfrHVqeOPBhKlWl ixq3P1kjBt1prrMDyetqJPLcWp4Ey/ZQ2WNbuIRScB1PP2EHVPcXel+gxa0RINyvdH 6gtIfpqYjxmidIyHhBDR5ECeATYujaedR1uCAgV7uin54DvAMe9AlNaT6aecQU1sEz XMb4EKbL8j9yQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 68BBB69631; Wed, 21 Jan 2026 21:12:12 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 21:11:30 -0700 Message-ID: <20260122041155.174721-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260122041155.174721-1-sjg@u-boot.org> References: <20260122041155.174721-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 7IAVTNWPRNCMDGVOQ7YINW37KOXIHZYC X-Message-ID-Hash: 7IAVTNWPRNCMDGVOQ7YINW37KOXIHZYC 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: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 02/16] expo: Add tin parameter to scene_txtin_close() List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add a text-input info parameter to scene_txtin_close() to prepare for passing the vidconsole context when closing. For now the caller passes NULL but this will be updated in a later commit. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- boot/scene_internal.h | 3 ++- boot/scene_txtin.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/scene_internal.h b/boot/scene_internal.h index d9ca1fef90e..71cbc85c358 100644 --- a/boot/scene_internal.h +++ b/boot/scene_internal.h @@ -588,8 +588,9 @@ int scene_txtin_open(struct scene *scn, struct scene_obj *obj, * Close out the text editor after use * * @scn: Scene containing the object + * @tin: Text-input info */ -void scene_txtin_close(struct scene *scn); +void scene_txtin_close(struct scene *scn, struct scene_txtin *tin); /** * scene_obj_calc_bbox() - Calculate bounding boxes for an object diff --git a/boot/scene_txtin.c b/boot/scene_txtin.c index 9b8edcc6439..1dfa3a02a6a 100644 --- a/boot/scene_txtin.c +++ b/boot/scene_txtin.c @@ -106,7 +106,7 @@ static void scene_txtin_putch(struct cli_line_state *cls, int ch) vidconsole_put_char(scn->expo->cons, NULL, ch); } -void scene_txtin_close(struct scene *scn) +void scene_txtin_close(struct scene *scn, struct scene_txtin *tin) { /* cursor is not needed now */ vidconsole_readline_end(scn->expo->cons, NULL); @@ -180,7 +180,7 @@ int scene_txtin_send_key(struct scene_obj *obj, struct scene_txtin *tin, memcpy(abuf_data(&tin->buf), abuf_data(&scn->buf), abuf_size(&scn->buf)); - scene_txtin_close(scn); + scene_txtin_close(scn, NULL); } else { event->type = EXPOACT_QUIT; log_debug("menu quit\n");