commit:     a45f1cad89eb96e11fd198565f2a6f8ce6922e38
Author:     Christoph Böhmwalder <christoph <AT> boehmwalder <DOT> at>
AuthorDate: Sun Dec  3 15:23:55 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Dec  4 08:36:47 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=a45f1cad

xtermTitle: support st (simple terminal)

Currently users of suckless' simple terminal have to rely on ugly hacks
like this in order to make portage display merging progress in the
terminals title bar:

alias emerge="TERM=xterm emerge"

Officially support st by adding it to the list of legal terminals.

Signed-off-by: Christoph Böhmwalder <christoph <AT> boehmwalder.at>

 pym/portage/output.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/output.py b/pym/portage/output.py
index 6d8c6324a..1070d0ef3 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -234,7 +234,7 @@ def nc_len(mystr):
        tmp = re.sub(esc_seq + "^m]+m", "", mystr);
        return len(tmp)
 
-_legal_terms_re = 
re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux)')
+_legal_terms_re = 
re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux|st-256color)')
 _disable_xtermTitle = None
 _max_xtermTitle_len = 253
 

Reply via email to