]>
Commit | Line | Data |
---|---|---|
86ec8038 AM |
1 | From: Andy Spencer |
2 | Subject: [screen-devel] [PATCH 1/1] Increase max TERM length to 40 characters | |
3 | Date: Tue, 5 Apr 2011 03:26:58 +0000 | |
4 | Source: https://lists.gnu.org/archive/html/screen-devel/2011-04/msg00002.html | |
5 | ||
6 | Some terms contain rather long TERM names these days, for example, | |
7 | `rxvt-unicode-256color'. Increasing the max size for the TERM variables | |
8 | avoids the `$TERM too long - sorry.' error when using these terms. | |
9 | ||
10 | --- | |
11 | display.h | 2 +- | |
12 | screen.h | 2 +- | |
13 | 2 files changed, 2 insertions(+), 2 deletions(-) | |
14 | ||
15 | Index: screen/display.h | |
16 | =================================================================== | |
17 | --- screen.orig/display.h 2011-10-06 01:30:53.000000000 +0200 | |
18 | +++ screen/display.h 2011-10-08 21:28:51.000000000 +0200 | |
19 | @@ -73,7 +73,7 @@ | |
20 | struct win *d_other; /* pointer to other window */ | |
21 | int d_nonblock; /* -1 don't block if obufmax reached */ | |
22 | /* >0: block after nonblock secs */ | |
23 | - char d_termname[20 + 1]; /* $TERM */ | |
24 | + char d_termname[40 + 1]; /* $TERM */ | |
25 | char *d_tentry; /* buffer for tgetstr */ | |
26 | char d_tcinited; /* termcap inited flag */ | |
27 | int d_width, d_height; /* width/height of the screen */ | |
28 | Index: screen/screen.h | |
29 | =================================================================== | |
30 | --- screen.orig/screen.h 2011-10-08 21:20:57.000000000 +0200 | |
31 | +++ screen/screen.h 2011-10-08 21:28:45.000000000 +0200 | |
32 | @@ -214,7 +214,7 @@ | |
33 | char preselect[20]; | |
34 | int esc; /* his new escape character unless -1 */ | |
35 | int meta_esc; /* his new meta esc character unless -1 */ | |
36 | - char envterm[20 + 1]; /* terminal type */ | |
37 | + char envterm[40 + 1]; /* terminal type */ | |
38 | int encoding; /* encoding of display */ | |
39 | int detachfirst; /* whether to detach remote sessions first */ | |
40 | } |