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.
This commit is contained in:
Michael Kuhn
2021-10-11 17:54:59 +02:00
committed by GitHub
parent 8f62039d45
commit d1f3279607
4 changed files with 49 additions and 2 deletions

View File

@@ -33,7 +33,7 @@
# 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
#