From patchwork Fri Sep 19 20:14:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 382 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=1758313055; bh=RLYAIT5ycTKPvCTEtclidcsSJfTQ2v4Pdu0VmYXHh2M=; 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=dwK5hiQV3ZYPYQtjgqYv+UBybXItBlSDACtgJ5WcYJ60Z5zpzQoOyKtTri4TKsJd3 Mq5Q9heriTwKkfsuVHZmY7RaaYEiCXsCiXSClMCCXAXvXOTqZ5lFhWJNCqFdlHg6KS kA9S5tZjkfEx5qwsPhKmIKaszgYHS+yh1cetO8v8XnuUxXguPGjxVEOniVLpg+xF9g 95SI0WKGTqq1P09AEAnmTbT87BCJ3axQCJmvG/fp0v8yTKuQkzkL3gydIboFN4yjuQ 8Ex94wzQ39USuy9gSr3yZ/fPaYcRRIrAUcF8i7LsoV3AHPktFt6/8aVC5Tu0qqoWyL XEFQqPNt8BuTw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 667F267C92 for ; Fri, 19 Sep 2025 14:17:35 -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 zGcE7cO2Y5RR for ; Fri, 19 Sep 2025 14:17:35 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313055; bh=RLYAIT5ycTKPvCTEtclidcsSJfTQ2v4Pdu0VmYXHh2M=; 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=dwK5hiQV3ZYPYQtjgqYv+UBybXItBlSDACtgJ5WcYJ60Z5zpzQoOyKtTri4TKsJd3 Mq5Q9heriTwKkfsuVHZmY7RaaYEiCXsCiXSClMCCXAXvXOTqZ5lFhWJNCqFdlHg6KS kA9S5tZjkfEx5qwsPhKmIKaszgYHS+yh1cetO8v8XnuUxXguPGjxVEOniVLpg+xF9g 95SI0WKGTqq1P09AEAnmTbT87BCJ3axQCJmvG/fp0v8yTKuQkzkL3gydIboFN4yjuQ 8Ex94wzQ39USuy9gSr3yZ/fPaYcRRIrAUcF8i7LsoV3AHPktFt6/8aVC5Tu0qqoWyL XEFQqPNt8BuTw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5628567C06 for ; Fri, 19 Sep 2025 14:17:35 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313053; bh=TBjaF2WgFGhs28qSR5WAKeAubORlgAPNDPcM4w9GqqA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rv9cIBUEfjh/ykqKrRJS6VmRHplm9BkA6Ot7BnVRm0BbfwpxRq43UQE2NVR0DcPQu Y9dMWtSItwhQKywYHMjo8sf92ul/WVQgVbfeJ+4EoSaWdYYXnL7o2Ll/9Dunk5PJ2I pzhp+6IJlsJAxahD/ySk4PWnArCZpQWlY5e0Q/y3JPyH4EZUIIt7pDT9DHuBiMgb9i aEUDCaR7nxgLKAkwduthNDknADRkhBgob9WKjmOBpKkE7w2cNc44dL9t2NQvAMViDC WU9JYLhKGkrez0nJFbBuakRa4oikwlRBKafB4VRFFjtMzFulLX1BLO26KYgvmT0RdJ EeuToXm6v3v4w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 35ABB67C06; Fri, 19 Sep 2025 14:17:33 -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 Bcc3UudhqBoT; Fri, 19 Sep 2025 14:17:33 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758313052; bh=/7gRk668WnfVEYHaqKTb/o3NaYZrcDjGgW+t9WcrFLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oZqFo9Nhl3hCZhI9BHO8gjbvIgPuRf8v9KoeyzZbVmIvvwqnmZ2hM6ZD3D5hO06/C FaSkJ7IKCWC59Ix60OAymCKuVKThC3qa9XPt5QiKo8gJ1gSWInzaO/UL6Eev5iRwMH u/qK5Z+lLC5tveLplozl3L0z0VsjLeJdcUhfbTe6WVDs25CTMlW+1bdw3Y1/lD+pww y+8pu9X3Ktzlq6908ytZZQamIgtP9/GUSKp/bpbn4l6YxLUxaxejcyxJQr2axYZVwK Ax9ttrx8vCvq4dkzBdZUocpjEwBfBK50FmnNO8w6ipuyFT2gnCPh40ERPU8GQJekkH PmnqXGKj/smwQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 84E6A67BFC; Fri, 19 Sep 2025 14:17:32 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 19 Sep 2025 14:14:47 -0600 Message-ID: <20250919201507.4024144-41-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: EGFT3WQQXA443JNVSUZWYLALQLSZNEFP X-Message-ID-Hash: EGFT3WQQXA443JNVSUZWYLALQLSZNEFP 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 , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 40/42] video: truetype: Avoid clearing on backspace 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 Now that the truetype console properly handles clearing text from the display during editing, we don't need to clear the character when processing a backspace. This allows arrow keys to work as expected on the truetype console. Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index a42ae318fc8..4ddf133f2e0 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -590,10 +590,6 @@ static int console_truetype_backspace(struct udevice *dev) else xend = vid_priv->xsize; - video_fill_part(vid_dev, VID_TO_PIXEL(pos->xpos_frac), pos->ypos, - xend, pos->ypos + vc_priv->y_charsize, - vid_priv->colour_bg); - /* Move the cursor back to where it was when we pushed this record */ vc_priv->xcur_frac = pos->xpos_frac; vc_priv->ycur = pos->ypos;