Gentoo Archives: gentoo-portage-dev

From: "Christoph Böhmwalder" <christoph@×××××××××××.at>
To: gentoo-portage-dev@l.g.o
Cc: "Christoph Böhmwalder" <christoph@×××××××××××.at>
Subject: [gentoo-portage-dev] [PATCH] xtermTitle: support st (simple terminal)
Date: Sun, 03 Dec 2017 15:24:05
Message-Id: 20171203152355.28110-1-christoph@boehmwalder.at
1 Currently users of suckless' simple terminal have to rely on ugly hacks
2 like this in order to make portage display merging progress in the
3 terminals title bar:
4
5 alias emerge="TERM=xterm emerge"
6
7 Officially support st by adding it to the list of legal terminals.
8
9 Signed-off-by: Christoph Böhmwalder <christoph@×××××××××××.at>
10 ---
11 pym/portage/output.py | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/pym/portage/output.py b/pym/portage/output.py
15 index 6d8c6324a..05aa7ba5c 100644
16 --- a/pym/portage/output.py
17 +++ b/pym/portage/output.py
18 @@ -234,7 +234,7 @@ def nc_len(mystr):
19 tmp = re.sub(esc_seq + "^m]+m", "", mystr);
20 return len(tmp)
21
22 -_legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux)')
23 +_legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux|st)')
24 _disable_xtermTitle = None
25 _max_xtermTitle_len = 253
26
27 --
28 2.15.1

Replies