Alec, Neil, On Tuesday, 2021-08-03 13:44:29 +0100, Neil Bothwick wrote:
> On Tue, 03 Aug 2021 07:45:27 -0400, Alec Ten Harmsel wrote: > > > > $ emerge --ask --depclean | less > > > ... > > Depending what desktop environment/terminal emulator, there are a few > > options. You could use a terminal like gnome-terminal, konsole, etc. > > which have scroll so you can run `emerge -ca' and scroll to view the > > results. I run urxvt in i3 (not sure whether it scrolls or not), and I > > always run emerge inside of a tmux and use tmux's scroll to view all > > the output before making a decision, so you could also use tmux or > > screen. I also use "urxvt" with a scrollbar and a buffer size of 3000 lines. But neither is this guaranteed to be enough, nor does it help when work- ing directly from a console (except perhaps when your kernel has Alan's scrolling patch applied). > > Or you could use a different pager, most does not exhibit this behaviour. > There is probably a less setting to change this too. Well, I tested this using "most" from within a "urxvt" terminal, and at least with default options it did not work for me. No output was dis- played at all and even "^C" did not work. I had to explicitly kill the "emerge" process from another terminal window, and only then received the output from "most". :-( I also tried good ol' "more" and "pg", but even though they both accept- ed "^C" they somehow interfered with the question "emerge" should final- ly be asking. I did not yet test all these pagers directly from a cons- ole, because I'd prefer a universal solution for this problem. And come to think of it, I'd prefer a solution with "more" or "pg" because where- as "less" and "most" each are provided by packages of their own, the former two are both provided by package "sys-apps/util-linux" which is even installed on my live USB stick, if I remember correctly. Sincerely, Rainer