Hi!

On Sun, 2018-05-13 at 21:29:13 -0700, Dima Kogan wrote:
> Package: dpkg

> Currently dpkg has logic to detect the terminal width and then to adjust
> its output. If the terminal is too narrow this has the effect of
> truncating useful information such as the package names and versions.
> Truncating this information has the effect of rendering the output
> useless. For instance:

[…]

> I asked dpkg to tell me about all the '*sundials*' packages it knows
> about. And it then lied to me about both the names and the versions of
> these packages. To get the requested information out I have to prevent
> dpkg from knowing my terminal settings:

I think if dpkg had a say, it would reject the notion that it lied to
you, it just provided partial information. ;)

[…]

> Can we please strip out this logic? I don't think 'dpkg -l' should cut
> out any information ever. Want a patch?

So, I'm usually annoyed by this behavior to the point that I tend to
use a pager to get the output. But this is a historical behavior and
I'm not sure whether people would get annoyed by such change, people
are sensitive like that to this kind of UI change.

I think a compromise change might be to automatically run the output
through a pager when on a terminal, then the trimming code can go. I
will probably ask around to see what people say.

Thanks,
Guillem

Reply via email to