From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iN5mz-0006Fw-UW for mharc-grub-devel@gnu.org; Tue, 22 Oct 2019 21:50:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43775) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN5mw-0006Ew-TR for grub-devel@gnu.org; Tue, 22 Oct 2019 21:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iN5mv-0003ap-QY for grub-devel@gnu.org; Tue, 22 Oct 2019 21:50:14 -0400 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:40417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iN5mv-0003ab-M5 for grub-devel@gnu.org; Tue, 22 Oct 2019 21:50:13 -0400 Received: by mail-qt1-x844.google.com with SMTP id o49so22152117qta.7 for ; Tue, 22 Oct 2019 18:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=C5swkvsntRqP6vbhXOtDde39qZTDysuzWZjMfHG0pQ8=; b=Rsx0sLyEwAgrge4tEBx8fgy7/BGcH48J/DQr+DB6d7aaVjlQrA/2yT2srHFmosVMwU JsKJ+FLa4jULcSJnCFQaYYtXa5j9DzxtGg3XhhSjCwJZtoWs5YoZ52eSPFHT3P3uvjOf iUOyn0lLCoTYuDfnqTVBAivHJlZqDOxpW8OeR/7t+WAbCybiypggeEFZe2NsoNgRnBzG 5xm7jMgD47YYDjmRc6eJmxQeKxLzW5OyvPtRMXwvOIJMdBPlaYa3K3qH5xrdRjK+RLYa 7zr5v0q16IWOK9o6qa7/dQ1lzfcL5bCUQ8nhoHMzXa+ryYRiKAwSKxQY9hXfJDn2t1MO YX0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=C5swkvsntRqP6vbhXOtDde39qZTDysuzWZjMfHG0pQ8=; b=e/++Ov1LtD2DUpCAKa9RNzHBrwB3b0WPCo0v/ZmQW+k4n7Mujptno1P3B0koNyUPsI HEW0t7tclaL+VMbfzUAMJqmsSKzdVl7ePVkKHy7mWxQd1wpHY5tKOYPVZ3VMKVIUo18H ze0y8mveND1KfR/DuPCaIps02xJEJXBU1+4b8/nLvQcASTnMvoZqsJh6Sqp/+akJNh6I WgeJr9NOVsXdSX5UrY43lC/ak93lkmj8O8mmXo4fYMGK9GfFu+ujk3dipLz3MvMGqna8 C8AMDo1iaPpzJf7frp0sT2MCIf5TvtklYv4D12VcDbmImVZyOzdgQvKtq9aAUqyqNYzT 0YJQ== X-Gm-Message-State: APjAAAWoYFCltyqigYSNm/SIzg/sjPcGa/KR0y7gYzbulv84k9dxd+2o mSL+B9KJGx7TWDoU0QtvtfhGSDYR X-Google-Smtp-Source: APXvYqwQjPhyQ12aVEI1Y6s0NDA+LWuhaVDjY7FX5BdJbaxWiYdOMiPdI5vkpGGVUPLJb2ZDbYSrMQ== X-Received: by 2002:ac8:b42:: with SMTP id m2mr6721233qti.174.1571795412288; Tue, 22 Oct 2019 18:50:12 -0700 (PDT) Received: from ?IPv6:2606:a000:111d:3fe:4433:f3cf:2119:ef54? (cpe-2606-A000-111D-3FE-4433-F3CF-2119-EF54.dyn6.twc.com. [2606:a000:111d:3fe:4433:f3cf:2119:ef54]) by smtp.gmail.com with ESMTPSA id f21sm8919740qte.36.2019.10.22.18.50.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Oct 2019 18:50:11 -0700 (PDT) Subject: Re: [PATCH] Enable pager by default To: grub-devel@gnu.org 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> From: Nicholas Vinson Message-ID: <736b99b7-0b90-c820-227f-e86ce440c509@gmail.com> Date: Tue, 22 Oct 2019 21:50:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191022140428.ignbsxgngmq4bm6x@tomti.i.net-space.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::844 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: Wed, 23 Oct 2019 01:50:16 -0000 On 10/22/19 10:04, 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 wrote: >>>> 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 chance to >>>> read it. Also, there isn't any information about 'set pager=1' 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 experience. >>> >>> Hmmm... What will happen if a command produce tons of output during boot >>> process? I am afraid that it will hang indefinitely waiting for an user >>> 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 command >> 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 think default paging behavior could be handled by an environment variable with paging disabled by default. GRUB's console could then print a very short message instructing people to set the variable to enable command paging. I believe this would handle both concerns. Nicholas Vinson > > Daniel > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >