From patchwork Thu Sep 25 17:47:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 415 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=1758822501; bh=latd37VX87Rz4WPOj5VfDMaMwFglusD8Qp59zb3p4cE=; 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=TRsrwESTMrpJUWMO1nIWZsEQEasbWhctl0FozGjw4RWHL18vPDTL441goAxJNgHWy VGYrOXkt9x/gBlJkGDixwuoGBKC30ms7czfGsiKTCEkefh9cXAlzqGwQ2512mqf20e 99iGrIK9HlOg3sP598TcudQX7u73djS3N/a0HxIQCE0pIQb7v6GK2Ys8xNeEvmANmX OHXDMJrSIjORtPWX34GceGepubxsSuUK5UzxDPOki23GvBMAC+ztkQ3Ux4n7fKtLAd GmFmTxJglY1C9fa3zVNJdF6fL3eXO1WHMASiAbhG+TH8v3fqhWj0VtKQhGS/IcezIM mtEJUonURFtSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6E04867D93 for ; Thu, 25 Sep 2025 11:48:21 -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 2q7IZ2PKTz_B for ; Thu, 25 Sep 2025 11:48:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822501; bh=latd37VX87Rz4WPOj5VfDMaMwFglusD8Qp59zb3p4cE=; 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=TRsrwESTMrpJUWMO1nIWZsEQEasbWhctl0FozGjw4RWHL18vPDTL441goAxJNgHWy VGYrOXkt9x/gBlJkGDixwuoGBKC30ms7czfGsiKTCEkefh9cXAlzqGwQ2512mqf20e 99iGrIK9HlOg3sP598TcudQX7u73djS3N/a0HxIQCE0pIQb7v6GK2Ys8xNeEvmANmX OHXDMJrSIjORtPWX34GceGepubxsSuUK5UzxDPOki23GvBMAC+ztkQ3Ux4n7fKtLAd GmFmTxJglY1C9fa3zVNJdF6fL3eXO1WHMASiAbhG+TH8v3fqhWj0VtKQhGS/IcezIM mtEJUonURFtSw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5D88067D82 for ; Thu, 25 Sep 2025 11:48:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822500; bh=8kQcnDDjShKjmTUKIeb466inV/9DFHir4KUI0RHOP5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sX0nQRPKBUl1VOD1+FlZ8kd0lMMOZbPPryXpggGFTtp9d1FZP35ZgBUI028wdWm0X frAn8lGHMsrJOgdlm6oAux+M8ZcJ3ucD+HwgdZ0yibxOkNzBJQjQ9RqSUERt4rPlDQ DIPe2iRxRNmUbMG0bwasxL320eL4YO1R4QrEwHLL6H4fpIi+ImFhb/kLzEqwhFz+Rj Xx2nGCbB3Rctu8BkpWRmRVCT6+CZBZ+A7jJAMzIqgeytQ+hiGtZt9akZ5AVHlcsLA9 6ulw2noWYqRJgjgTFbopQR3/xsfHnGhvWpqKkbHC3f5EQEKgK46zfC20b45aBzkOus yRIgaBgE0EKrg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3A4B167D76; Thu, 25 Sep 2025 11:48:20 -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 CNbwSMoTImpk; Thu, 25 Sep 2025 11:48:20 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822495; bh=78VzqzL+tQZ+nwOM5smLESorHpOoJ5VtBmsiBLye/8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=day/RrdNIHXb0ng7njnsYDVGDptCYLxAUT9a9Bxf0ZaGprt60khHQJiSd2S688SEF X3H6Xe8MYzPwH81HgufUJnppUKTiayNJI+MHsySu/HFI7YT6aFvmHu86YdBnbzeCiF Pnrk6s5dt+BuTzxpDMg0pCUw1E5tm7SRebrSLA7QW4Olaz4zmh5hNqEJkxKEusaPAL uRWbHaoXMFCdoHUezobMYHAQidn3zS9p5yxJxG17wYQCzp3E9aCoH0WEkTH+09tNjg OvWWamphHUlJaTcVn6ilQCRhE+bkPfpRuhWjvE+mrk8QB2mStpk6LC3n3ITys5SLUs wkOKRHx1rF+oA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 209AE67CA2; Thu, 25 Sep 2025 11:48:15 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 25 Sep 2025 11:47:27 -0600 Message-ID: <20250925174753.3429102-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250925174753.3429102-1-sjg@u-boot.org> References: <20250925174753.3429102-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 2TSJODWVSJFHA3ONPJQ3VCD4Q5JGWSXF X-Message-ID-Hash: 2TSJODWVSJFHA3ONPJQ3VCD4Q5JGWSXF 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 03/22] console: Reset the pager when clearing the console 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 When the console is cleared we have a fresh screen so we can reset the pager. Signed-off-by: Simon Glass --- common/console.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/console.c b/common/console.c index 561a859dc1e..c033d72486a 100644 --- a/common/console.c +++ b/common/console.c @@ -1108,6 +1108,7 @@ int console_clear(void) if (ret) return ret; } + pager_reset(gd_pager()); return 0; }