Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iLRbP-0000Au-3n for mharc-grub-devel@gnu.org; Fri, 18 Oct 2019 08:43:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43186) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLRbN-000089-FQ for grub-devel@gnu.org; Fri, 18 Oct 2019 08:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLRbI-0006sK-D7 for grub-devel@gnu.org; Fri, 18 Oct 2019 08:43:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLRbI-0006s6-7b for grub-devel@gnu.org; Fri, 18 Oct 2019 08:43:24 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 619362A09B1 for ; Fri, 18 Oct 2019 12:43:23 +0000 (UTC) Received: by mail-wm1-f72.google.com with SMTP id z24so1440943wmk.8 for ; Fri, 18 Oct 2019 05:43:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mdx7+VLyJ84mniKcBiaNeMfTM1Qk48q8dXn7crEOUwA=; b=ptmGXLmBerBgPN5Pxos90EZ5fBFJzqmZ28uKIYb79D7bQHSYK8tVXfI8AKb25/gZZB ju53dB09KXd83qtE3cEs7siMCf2ZC/iETXlIbgmeqM9skTGfPibTFTJ1lXCEZSKm0OIj pByGfxJI7XCiKRdOYG8YQWCccIYMrkNNjmYa14QuJ4+sFeGxBCh1nLZA3Lhxlb9OK5vI H2b7OIwJXBUhAkO/yAL0PJxtgNrivWzQRLmvsUgIj9FOyxgGJvM9TKuZFOsdgWvTRKl9 /qQrWxxlFwJPy9ntE34sftLAMYzM68Xzc8b+cWR90sOoTRMgdj43GtxJ4Caz7e4nAZmR 4PUg== X-Gm-Message-State: APjAAAXGbVGiPyxUFPwDoLkL8DZ6jVtWJk7rVdAunAMtLdUvs1xoSVP1 MpddPnHiK2FVRo660Ojl2N3O91KEN0dLhIpKiKaobi/DDsHG4ZKnGhqUrlMEFdgGOP3TEeXQXTd xPsHwv5dFumw= X-Received: by 2002:a5d:664f:: with SMTP id f15mr7808626wrw.358.1571402601612; Fri, 18 Oct 2019 05:43:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeZONFQfxsqhJXAO0QPPOpgOhB1LTX/UOjm4GgTkEZIbFcGALOYFWve7fLehKZjT7ctrx3QA== X-Received: by 2002:a5d:664f:: with SMTP id f15mr7808617wrw.358.1571402601439; Fri, 18 Oct 2019 05:43:21 -0700 (PDT) Received: from minerva.redhat.com ([90.168.169.92]) by smtp.gmail.com with ESMTPSA id w17sm5193069wmi.30.2019.10.18.05.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 05:43:20 -0700 (PDT) From: Javier Martinez Canillas To: grub-devel@gnu.org Cc: Peter Jones , Javier Martinez Canillas Subject: [PATCH] Enable pager by default Date: Fri, 18 Oct 2019 14:43:18 +0200 Message-Id: <20191018124318.16361-1-javierm@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2019 12:43:30 -0000 From: Peter Jones When user enters into the GRUB shell and tries to use help command, lot o= f information is scrolled out of screen and the user doesn't have chance to read it. Also, there isn't any information about 'set pager=3D1' at the e= nd of the help output, to tell the user how scrolling could be enabled. So just enable pager by default which leads to a much better experience. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- util/grub.d/00_header.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index 93a90233ead..858b526c925 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -43,6 +43,8 @@ if [ "x${GRUB_DEFAULT_BUTTON}" =3D "xsaved" ] ; then GR= UB_DEFAULT_BUTTON=3D'${saved_ if [ "x${GRUB_TIMEOUT_BUTTON}" =3D "x" ] ; then GRUB_TIMEOUT_BUTTON=3D"$= GRUB_TIMEOUT" ; fi =20 cat << EOF +set pager=3D1 + if [ -s \$prefix/grubenv ]; then load_env fi --=20 2.21.0