1 |
commit: a45f1cad89eb96e11fd198565f2a6f8ce6922e38 |
2 |
Author: Christoph Böhmwalder <christoph <AT> boehmwalder <DOT> at> |
3 |
AuthorDate: Sun Dec 3 15:23:55 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 4 08:36:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a45f1cad |
7 |
|
8 |
xtermTitle: support st (simple terminal) |
9 |
|
10 |
Currently users of suckless' simple terminal have to rely on ugly hacks |
11 |
like this in order to make portage display merging progress in the |
12 |
terminals title bar: |
13 |
|
14 |
alias emerge="TERM=xterm emerge" |
15 |
|
16 |
Officially support st by adding it to the list of legal terminals. |
17 |
|
18 |
Signed-off-by: Christoph Böhmwalder <christoph <AT> boehmwalder.at> |
19 |
|
20 |
pym/portage/output.py | 2 +- |
21 |
1 file changed, 1 insertion(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/pym/portage/output.py b/pym/portage/output.py |
24 |
index 6d8c6324a..1070d0ef3 100644 |
25 |
--- a/pym/portage/output.py |
26 |
+++ b/pym/portage/output.py |
27 |
@@ -234,7 +234,7 @@ def nc_len(mystr): |
28 |
tmp = re.sub(esc_seq + "^m]+m", "", mystr); |
29 |
return len(tmp) |
30 |
|
31 |
-_legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux)') |
32 |
+_legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux|st-256color)') |
33 |
_disable_xtermTitle = None |
34 |
_max_xtermTitle_len = 253 |