$TERM size (was: Re: New release?)

Axel Beckert <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization DeuxChevaux.org -- The Citr oën 2CV Database
Message-ID <[email protected]>
On Tue, Aug 06, 2013 at 07:05:30PM +0200, Carsten Mattner wrote:
> Minimally off-topic but I'm sure everyone will agree that d_termname's
> size should be increased to prevent problems with things like
> TERM=rxvt-unicode-256color. Maybe like this?
> --- a/src/display.h
> +++ b/src/display.h
> @@ -73,7 +73,7 @@ struct display
>    struct win *d_other;         /* pointer to other window */
>    int   d_nonblock;            /* -1 don't block if obufmax reached */
>                                 /* >0: block after nonblock secs */
> -  char  d_termname[20 + 1];    /* $TERM */
> +  char  d_termname[24 + 1];    /* $TERM */
>    char *d_tentry;              /* buffer for tgetstr */
>    char d_tcinited;             /* termcap inited flag */
>    int  d_width, d_height;      /* width/height of the screen */

That definitely doesn't suffice. There are several places where this
needs to be changed.

Also I think if we change that value, it should be changed with more
farsight and not only extended by 4 bytes. The Debian packagedoubled
the size and uses 40 bytes for that.

Full patch at
http://patch-tracker.debian.org/patch/series/view/screen/4.1.0~20120320gitdb59704-9/50increase-max-TERM-length.patch

(May require other Debian patches, at least for correct line numbers,
and hence not apply cleanly.)

All patches used in the Debian package:

http://patch-tracker.debian.org/package/screen/4.1.0~20120320gitdb59704-9

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.asciiribbon.org/              | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.