diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2021-10-11 17:54:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 17:54:59 +0200 |
commit | d1f327960793ffdf5d83538ed636da0181f906a2 (patch) | |
tree | 15fe8fbca478b65ecdd37e3e5fc42e98add57fb5 /lib/spack/llnl/util/tty/log.py | |
parent | 8f62039d45ec6545d0a226611bdf8998665844d8 (diff) | |
download | spack-d1f327960793ffdf5d83538ed636da0181f906a2.tar.gz spack-d1f327960793ffdf5d83538ed636da0181f906a2.tar.bz2 spack-d1f327960793ffdf5d83538ed636da0181f906a2.tar.xz spack-d1f327960793ffdf5d83538ed636da0181f906a2.zip |
installer: Support showing status information in terminal title (#16259)
Installing packages with a lot of dependencies does not have an easy way
of judging the current progress (apart from running `spack spec -I pkg`
in another terminal). This change allows Spack to update the terminal's
title with status information, including its current progress as well as
information about the current and total number of packages.
Diffstat (limited to 'lib/spack/llnl/util/tty/log.py')
-rw-r--r-- | lib/spack/llnl/util/tty/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/tty/log.py b/lib/spack/llnl/util/tty/log.py index bc79b32335..7003f58f8d 100644 --- a/lib/spack/llnl/util/tty/log.py +++ b/lib/spack/llnl/util/tty/log.py @@ -33,7 +33,7 @@ except ImportError: # Use this to strip escape sequences -_escape = re.compile(r'\x1b[^m]*m|\x1b\[?1034h') +_escape = re.compile(r'\x1b[^m]*m|\x1b\[?1034h|\x1b\][0-9]+;[^\x07]*\x07') # control characters for enabling/disabling echo # |