Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Christoph Böhmwalder" <christoph@×××××××××××.at>
Subject: Re: [gentoo-portage-dev] [PATCH] xtermTitle: support st (simple terminal)
Date: Sun, 03 Dec 2017 21:00:42
Message-Id: 136c7b3f-b1cb-d8ce-3537-0b3526d403fe@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] xtermTitle: support st (simple terminal) by "Christoph Böhmwalder"
1 On 12/03/2017 07:23 AM, Christoph Böhmwalder wrote:
2 > Currently users of suckless' simple terminal have to rely on ugly hacks
3 > like this in order to make portage display merging progress in the
4 > terminals title bar:
5 >
6 > alias emerge="TERM=xterm emerge"
7 >
8 > Officially support st by adding it to the list of legal terminals.
9 >
10 > Signed-off-by: Christoph Böhmwalder <christoph@×××××××××××.at>
11 > ---
12 > pym/portage/output.py | 2 +-
13 > 1 file changed, 1 insertion(+), 1 deletion(-)
14 >
15 > diff --git a/pym/portage/output.py b/pym/portage/output.py
16 > index 6d8c6324a..05aa7ba5c 100644
17 > --- a/pym/portage/output.py
18 > +++ b/pym/portage/output.py
19 > @@ -234,7 +234,7 @@ def nc_len(mystr):
20 > tmp = re.sub(esc_seq + "^m]+m", "", mystr);
21 > return len(tmp)
22 >
23 > -_legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux)')
24 > +_legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux|st)')
25 > _disable_xtermTitle = None
26 > _max_xtermTitle_len = 253
27
28 Your change will match any TERM value that starts with 'st', which seems
29 too loose. How about if we match st-256color instead?
30 --
31 Thanks,
32 Zac

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCH] xtermTitle: support st (simple terminal) "Christoph Böhmwalder" <christoph@×××××××××××.at>