Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iNX3b-0003Eu-Ai for mharc-grub-devel@gnu.org; Thu, 24 Oct 2019 02:57:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47886) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNX3X-00039C-8n for grub-devel@gnu.org; Thu, 24 Oct 2019 02:57:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNX3U-0001s8-PL for grub-devel@gnu.org; Thu, 24 Oct 2019 02:57:09 -0400 Received: from m9a0002g.houston.softwaregrp.com ([15.124.64.67]:39278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iNX3U-0001kt-IZ for grub-devel@gnu.org; Thu, 24 Oct 2019 02:57:08 -0400 Received: FROM m9a0002g.houston.softwaregrp.com (15.121.0.190) BY m9a0002g.houston.softwaregrp.com WITH ESMTP; Thu, 24 Oct 2019 06:56:24 +0000 Received: from M9W0067.microfocus.com (2002:f79:be::f79:be) by M9W0067.microfocus.com (2002:f79:be::f79:be) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 24 Oct 2019 06:55:31 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (15.124.72.13) by M9W0067.microfocus.com (15.121.0.190) 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; Thu, 24 Oct 2019 06:55:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=inhCJJ8YNxICivIKEuNA96J6jDDouUtMsrPA7h8Z8T84jH+Z0pklhGGNMmTYpmoLZyPo8s4g8tYm956TUWHIipJkPuedmx+p6p7/a8pQQ6d4M59jg+MJXrSGc/TNJwYG4JWISnzgo8LdZOVTirWZa0ky/g1WX8dNO1puWEbmwB3DxNlUUCXAABTJf37kwxEY++v8cOZF1P6gINDdm+1wZ/Gco3FGLYfCtq4/RJfK5YdbuBPluTtB1h1dXg+OPyRZeAWZxJ6HzJy72CgROrIajZt4T0dTVas2Mn4wTUXzr3cOja9AwgERdarwEyjzWGQBqPYIwyYNptypuSIbQZ8mxQ== 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=1W3e1IQ76wt1gTqtWqSKlB+QvcJmtAFpPE0ZiPhBWCM=; b=i4N2Mjzi6Wc9rRn2hRo4Weedax2LwhxQGfiXKwxjLfEDFEcUWi2LldCts+RScrdIfUHKP0AulKWWM5qLyHov2hW8qsrRREGL2iqYWtRaGYWr8jdBwBnei0WvDexBM3BXEILD+GIkSpnJA5Mfh8r0zC+kwLaDg0MWypZsTRciZZQQoGR37hjqNXdcsEFgamkxHJVbeiHoeSj1ULJi2idc2Anf/BY/gz4fD2nmk6dpgSRju0z1cAguJ5AIHTdasrz3SMFy1tnnhps2UFifADL4EUH5ZhU/uWsQ81uXu2E755PYqXRhePRva7++x0Kps/tCma1sOg+8yyAZ9ObIX91LcQ== 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 BY5PR18MB3122.namprd18.prod.outlook.com (10.255.139.11) by BY5PR18MB3267.namprd18.prod.outlook.com (10.255.138.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.24; Thu, 24 Oct 2019 06:54:53 +0000 Received: from BY5PR18MB3122.namprd18.prod.outlook.com ([fe80::2c63:52aa:e278:b47a]) by BY5PR18MB3122.namprd18.prod.outlook.com ([fe80::2c63:52aa:e278:b47a%6]) with mapi id 15.20.2347.030; Thu, 24 Oct 2019 06:54:53 +0000 From: Michael Chang To: The development of GNU GRUB CC: Javier Martinez Canillas , Peter Jones Subject: Re: [PATCH] Enable pager by default Thread-Topic: [PATCH] Enable pager by default Thread-Index: AQHVhbHR4EwPnH/tAECTdh/EmdMy46dlNACAgAEmfQCAAF1bAIACrJQA Date: Thu, 24 Oct 2019 06:54:53 +0000 Message-ID: <20191024065440.GB8270@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> In-Reply-To: <20191022140428.ignbsxgngmq4bm6x@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: LO2P265CA0159.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::27) To BY5PR18MB3122.namprd18.prod.outlook.com (2603:10b6:a03:1af::11) 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: 32a67a70-b146-4d70-5727-08d7584f1263 x-ms-traffictypediagnostic: BY5PR18MB3267: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1728; x-forefront-prvs: 0200DDA8BE x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916004)(4636009)(136003)(396003)(366004)(346002)(376002)(39860400002)(199004)(189003)(81156014)(55236004)(80792005)(3846002)(6116002)(81166006)(256004)(102836004)(33656002)(386003)(316002)(2906002)(86362001)(6246003)(6506007)(66446008)(66946007)(66476007)(66556008)(64756008)(8676002)(8936002)(53546011)(229853002)(66066001)(6436002)(1076003)(6486002)(7736002)(305945005)(476003)(25786009)(11346002)(486006)(446003)(71190400001)(71200400001)(76176011)(966005)(186003)(99286004)(5660300002)(14454004)(52116002)(26005)(33716001)(6916009)(4326008)(9686003)(6512007)(6306002)(478600001)(54906003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY5PR18MB3267; H:BY5PR18MB3122.namprd18.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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: URAMtbPvGzUvm03UBewSQDHpiWhfQWOCCHkayqV1LxLLHM3mBo00AgtruzGgfiqejfp7JLM8IRsnR9TgYHK3kxGxFw7kkF7uUoWR3Egy/zlpLfAqxEkR5y9JM+zisdBiwlhHhesZwyw6dONgDtuYxTXiIgBuZMossNt5sf3D5CjnoBDZwy2yX3Bnb/Bces8sXQ4PpEFUdzZ3d5kgXzpVs9sVIF7/DysJ4S0Mp+qqzRwvp6+EToQEDmfTeRptHirZjIFBY4D76FGLDtqiSH0xbUK82PuB83R46a2PBKi9cEomKgckM6oH6JLK7BbT5Pv28GnlaFp/TAgviptBFQq0hn2u3BjsPd4n7JttAlpUz+F3JRYSEbw+/k8z/LeFUH/a1ZFZSMV9vj86gw7aPk+z/CXN4XojmRmsu0ododo5awKVGagNBzmclp4g5xbtmrtJxsxotByfXVIjzq/MfQN0AdrYx6r9YjmBL9jsFv4GpZg= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 32a67a70-b146-4d70-5727-08d7584f1263 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 06:54:53.2604 (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: +NPE6hr/rxPoT6XtZ/mAHug1LGqbsLwJf3ZSdEBL9rG8yNpJPUboaQcp0RPq6j5W X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR18MB3267 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.64.67 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: Thu, 24 Oct 2019 06:57:13 -0000 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 wrote: > > Hello Daniel, > > > > On 10/21/19 4:56 PM, Daniel Kiper wrote: > > > On Fri, Oct 18, 2019 at 02:43:18PM +0200, Javier Martinez Canillas wr= ote: > > >> From: Peter Jones > > >> > > >> When user enters into the GRUB shell and tries to use help command, = lot of > > >> information is scrolled out of screen and the user doesn't have chan= ce 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 enabled. > > >> > > >> So just enable pager by default which leads to a much better experie= nce. > > > > > > Hmmm... What will happen if a command produce tons of output during b= oot > > > process? I am afraid that it will hang indefinitely waiting for an us= er > > > input. This should not happen. So, I tend to agree that current help > > > command behavior is annoying but I do not like the solution. > > > > Ok. I'll then explore having a paginated output only for the help comma= nd > > instead of globally enabling it by default. >=20 > 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. Thanks, Michael >=20 > Daniel >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel