On Mon, Aug 2, 2021, at 09:33, Dr Rainer Woitok wrote:
> What I'm trying to solve is reading the
> output from "emerge --depclean" one screen full at a time and at the end
> being asked whether or not I really want to unmerge all packages listed.
> And just running
> 
>    $ emerge --ask --depclean | less
> 
> did not work when tested with a single package to be removed: the output
> from "emerge" was displayed  on less than a single screen causing "less"
> to just terminate  due to my setting of environment variable "LESS", but
> "emerge" never issued the question whether or not to continue nor did it
> accept an answer.  I had to kill it with "^C" from the shell.
> 

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.

Hope this helps,

Alec

Reply via email to