[Aptitude-devel] Bug#815554: Bug#815554: aptitude: truncated hostname in header line (regression)

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Mon Feb 22 21:22:44 GMT 2016


Hi,

2016-02-22 17:14 Axel Beckert:
>Control: tag -1 + confirmed
>
>Hi,
>
>Vincent Lefevre wrote:
>> When I run aptitude, I get the following header line:
>>
>> aptitude 0.7.6 @ cven
>>
>> on my machine cventin, i.e. the hostname is truncated.
>
>Indeed.
>
>This seems to depend on the terminal width. The amount of characters
>of the hostname shown changes when I resize the terminal, aptitude
>runs in.

I had to do some changes to the size due to #810221 -- the fields Broken
and Download size are more important than host for most people, I guess.

Some people like the hostname being there, but I am still wondering if
it was an error to honour that request and enable it by default, because
we have had 2 reports because of it in a short time.

Due to the rules of creating columns in aptitude/cwidget, this is a bit
of a mess (it needs to reserve space beforehand even if the line appears
empty).  In any case, something has to give, and it's impossible to
support largish hostnames in 80-width characters anyway.

I haven't tried, but this should be able to be worked around by setting
Aptitude::UI::Package-Header-Format, and establishing a given width for
the hostname field.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list