From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iNsxZ-0003hE-2L for mharc-grub-devel@gnu.org; Fri, 25 Oct 2019 02:20:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33754) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNsxW-0003cU-69 for grub-devel@gnu.org; Fri, 25 Oct 2019 02:20:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNsxT-0003L7-GU for grub-devel@gnu.org; Fri, 25 Oct 2019 02:20:24 -0400 Received: from m4a0041g.houston.softwaregrp.com ([15.124.2.87]:59825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iNsxT-0003GP-9w for grub-devel@gnu.org; Fri, 25 Oct 2019 02:20:23 -0400 Received: FROM m4a0041g.houston.softwaregrp.com (15.120.17.147) BY m4a0041g.houston.softwaregrp.com WITH ESMTP; Fri, 25 Oct 2019 06:19:27 +0000 Received: from M9W0068.microfocus.com (2002:f79:bf::f79:bf) by M4W0335.microfocus.com (2002:f78:1193::f78:1193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 25 Oct 2019 06:16:49 +0000 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (15.124.72.11) by M9W0068.microfocus.com (15.121.0.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Fri, 25 Oct 2019 06:16:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HFFk84f5W6BkiZ8hgS6ddPoz/C8lM0sEpBgdg3gKUA63cUIcT9VBTzbMgiAAUy00qqPTkub4JjqesgcON2FQP1mPdD7pIio7lEaF/+dfLvASU3hv8fdvU5VmFuu83zxB89bHsuTqU38p116dYqPlJ4aXtLalNremi2J+y24+X1a2gaMsLQunIAKbwPCIQ4WGeadnac/Wr2wl6JHO2+oJ8+UcgYU0DrPxvFnh+gl8apocA6Eq6vuB4Dv97kfTMRihqv2ic+URKsblkEqjt3I5inc+QckTRLqxaqddMQZoxjNVOdkSUVl0Ovcj9r09/gaQj9vTH78REwoZQPGUvMU4BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o6oOWmGrxnTcEzl3+NoS3qvLPrs6JmhrHc31YND2fHc=; b=X8IxV5ma3koAGU2PwwYAUVIB+WlAo3XyO4GqmFeycrSqE9BvLAdw8KKuGBXtRXCyBOLF784Y9vtZlvpPQHUbyozf5FQe1d/bpDShhu3DwlWs8S7u/9379iVM1OLku/uoMNRTpXZF7yBb/19v4n5lfZjZfNYLipGMm8W1Q2jqhXPrJ2bewjq9TEG6hTvWeFqnII6oLWSl5O9Vxf2OyTX0b55CQCD/I17yvSipANdnNhJjS87TI1279uub/MUepIpOChE6DuxXOW35KIQtNwT3BJeJ01uBCcDH3ZjrIDHIRdAKYg4sObNsyFhXCnOnwwRnzUOb5Vzv53cviY9ZS+Ny+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Received: from MN2PR18MB3133.namprd18.prod.outlook.com (10.255.238.143) by MN2PR18MB3328.namprd18.prod.outlook.com (10.255.237.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.22; Fri, 25 Oct 2019 06:16:42 +0000 Received: from MN2PR18MB3133.namprd18.prod.outlook.com ([fe80::44df:626d:415c:a44]) by MN2PR18MB3133.namprd18.prod.outlook.com ([fe80::44df:626d:415c:a44%7]) with mapi id 15.20.2387.021; Fri, 25 Oct 2019 06:16:41 +0000 From: Michael Chang To: Daniel Kiper CC: The development of GNU GRUB , Javier Martinez Canillas , Peter Jones Subject: Re: [PATCH] Enable pager by default Thread-Topic: [PATCH] Enable pager by default Thread-Index: AQHVhbHR4EwPnH/tAECTdh/EmdMy46dlNACAgAEmfQCAAF1bAIACrJQAgACBx4CAAQXmAA== Date: Fri, 25 Oct 2019 06:16:41 +0000 Message-ID: <20191025061632.GA16881@mazu> References: <20191018124318.16361-1-javierm@redhat.com> <20191021145619.gewxm5eys4qu2ahp@tomti.i.net-space.pl> <6569e1ee-36e9-b774-0332-b746d591843b@redhat.com> <20191022140428.ignbsxgngmq4bm6x@tomti.i.net-space.pl> <20191024065440.GB8270@mazu> <20191024143909.ebhal3kbt2nt43qg@tomti.i.net-space.pl> In-Reply-To: <20191024143909.ebhal3kbt2nt43qg@tomti.i.net-space.pl> Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR03CA0025.apcprd03.prod.outlook.com (2603:1096:203:2f::13) To MN2PR18MB3133.namprd18.prod.outlook.com (2603:10b6:208:16b::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=MChang@suse.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [60.251.47.116] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0ef7b349-4cde-42ed-5d01-08d75912e6dd x-ms-traffictypediagnostic: MN2PR18MB3328: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 02015246A9 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(7916004)(376002)(136003)(346002)(396003)(366004)(39860400002)(189003)(199004)(4326008)(14454004)(316002)(5660300002)(2906002)(54906003)(9686003)(80792005)(229853002)(6512007)(66556008)(6436002)(25786009)(66476007)(6246003)(66946007)(86362001)(52116002)(186003)(53546011)(1076003)(446003)(81156014)(6486002)(76176011)(6116002)(11346002)(8676002)(64756008)(478600001)(8936002)(66446008)(476003)(99286004)(6916009)(81166006)(26005)(305945005)(7736002)(66066001)(71200400001)(33656002)(256004)(486006)(71190400001)(386003)(3846002)(6506007)(102836004)(55236004)(33716001); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR18MB3328; H:MN2PR18MB3133.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: suse.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Yb6ZsQyZfO/7JRj7FO+M04qw9N/ODfWyUTpTD59pIsDILEx+iIEC7BHoP5MWpkbc9WCvR6KhWqYdmtqA/LiAZPhhy0Vuug5d+tH+d6v08q6q3onhlHCGRo8rG+7y5ZLZ27LZ1eCIPIhRKYeCwuvfB/heVw4cxce7Eu+KNPR+19q+LBallaTlnk6626BRtFxYuaObEuaImfh4jL3Q9jtT2dH63ztH08vnfzpzmjv9zhj86lFWqQHlc/l6bTxm6DZSphm4JC2sbLexr01Le0kReUmk30pqBveatuJfuirk/go8p+JIdZpkkHLckNXK4Qq+O4iJO7eyLhMgwlVori33/j5C15rwOWS9IclidCnQ2+1bGCR0vP0/jL6/x9ammfCFld+PSBp5++Nm0E1DpatR1vV0IYyI1HXmQ2mbdasgE2GA8SNMne9mS2X+JHg3SYQ1 Content-Type: text/plain; charset="us-ascii" Content-ID: <672F268F3009B848B50F61B87A5B3238@namprd18.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0ef7b349-4cde-42ed-5d01-08d75912e6dd X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2019 06:16:41.6093 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: U9AGn+RG74hIU6fKJOadEpqF0n7fNIdEeUGmLqOsYF01TTkLX+BrjCaqsB21e1dt X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3328 X-OriginatorOrg: suse.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 15.124.2.87 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, 25 Oct 2019 06:20:27 -0000 On Thu, Oct 24, 2019 at 04:39:09PM +0200, Daniel Kiper wrote: > On Thu, Oct 24, 2019 at 06:54:53AM +0000, Michael Chang wrote: > > On Tue, Oct 22, 2019 at 04:04:28PM +0200, Daniel Kiper wrote: > > > On Tue, Oct 22, 2019 at 10:30:20AM +0200, Javier Martinez Canillas wr= ote: > > > > Hello Daniel, > > > > > > > > On 10/21/19 4:56 PM, Daniel Kiper wrote: > > > > > On Fri, Oct 18, 2019 at 02:43:18PM +0200, Javier Martinez Canilla= s wrote: > > > > >> From: Peter Jones > > > > >> > > > > >> When user enters into the GRUB shell and tries to use help comma= nd, lot of > > > > >> 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 end > > > > >> of the help output, to tell the user how scrolling could be enab= led. > > > > >> > > > > >> So just enable pager by default which leads to a much better exp= erience. > > > > > > > > > > Hmmm... What will happen if a command produce tons of output duri= ng boot > > > > > process? I am afraid that it will hang indefinitely waiting for a= n user > > > > > input. This should not happen. So, I tend to agree that current h= elp > > > > > command behavior is annoying but I do not like the solution. > > > > > > > > Ok. I'll then explore having a paginated output only for the help c= ommand > > > > instead of globally enabling it by default. > > > > > > Great! Though I would think about something which can be used also in > > > other commands producing a lot of output. Maybe we should introduce "= -p" > > > (pause) command line option for such commands. And I am not against > > > using existing code to do a pause. We just have to do it carefully. > > > > I'd like to add option to the list, which is grub could provide the > > information to have the commands able to tell they are executed in > > shell's interactive (aka command-line) or batch mode. After they could > > turn on/off paginated output according to the shell mode they are with. >=20 > Sounds interesting. However, I would go further. If pager =3D=3D 1 and we= are > in batch mode then paging is inactive. If pager =3D=3D 2 and we are in ba= tch > mode then paging is active. If we are in interactive mode then if > pager !=3D 0 then paging is active. I agree completely. In this way we no longer have to worry about setting page=3D1 would disrupt boot process as some command output could go overly log and at the same time setting page=3D2 could enforce paginated output everywhere, like what is working now. :) Thanks, Michael >=20 > Daniel