summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-07-23 14:54:04 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-23 15:22:00 +0300
commit9bdde453b721fe2c9dd53de189fd5fd9aa4ab937 (patch)
tree7aef0ef3f849d5d687344f19dbf3fc6eff366404 /test
parent03844f5dbe8535aa532ff2c1c4bdbc18ed6b8453 (diff)
downloadapk-tools-9bdde453b721fe2c9dd53de189fd5fd9aa4ab937.tar.gz
apk-tools-9bdde453b721fe2c9dd53de189fd5fd9aa4ab937.tar.bz2
apk-tools-9bdde453b721fe2c9dd53de189fd5fd9aa4ab937.tar.xz
apk-tools-9bdde453b721fe2c9dd53de189fd5fd9aa4ab937.zip
Disable progress bar on dumb terminals by default
The progress bar requires the terminal emulator to support ANSI escape sequences. Normally, TERM is set to dumb to indicate that the terminal emulator doesn't support any ANSI escape sequences. Attempting to use ANSI escape sequences on dumb terminals will lead to weird output. In order to make apk work by default, even on dumb terminals, this commit introduces an additional check which consults $TERM and disables the progress bar if it is set to "dumb". [TT: backported to 2.12]
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions