[tin-dev] [PATCH] Group level title too long for narrow terminal

Thomas Dickey dickey at his.com
Wed Feb 9 23:54:44 CET 2022


On Wed, Feb 09, 2022 at 08:38:57PM +0100, Dennis Preiser wrote:
> Hi,
> 
> If the group name is very long and the terminal window is relatively
> narrow, the title in the group level is not shortened appropriately
> (independent of tinrc.abbreviate_groupname). I noticed this with
> gmane.linux.debian.alioth.pkg-gnupg.general on news.gmane.io (tin -g
> news.gmane.io gmane.linux.debian.alioth.pkg-gnupg.general).
> 
> The attached patch should fix this.
> 
> Interestingly, the maximum possible room for the title cannot be used,
> since txt_you_have_mail and txt_type_h_for_help are defined with leading
> spaces:
> 
> txt_you_have_mail:   "    You have mail"
> txt_type_h_for_help: "           h=help"
> 
> Is there any reason for those leading spaces?

It's done for formatting (not my work - I'd have done this with a few
lines of code - which your patch appears to do).

fwiw, it's in the oldest copy I have of screen.c, from August 1995.

-- 
Thomas E. Dickey <dickey at invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://lists.tin.org/pipermail/tin-dev/attachments/20220209/bb0ca4e9/attachment.sig>


More information about the tin-dev mailing list