summaryrefslogtreecommitdiff
path: root/src/adb_walk_genadb.c
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-05-31 02:35:52 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2021-05-31 02:35:52 +0200
commit429e5984c56ab2b7713883298fd9cb1b3905c56e (patch)
treec02d568b109b55a4402716e38ae1cf224b02ad9d /src/adb_walk_genadb.c
parent1456296b43462cce0de55049b653c5225e7feac5 (diff)
downloadapk-tools-429e5984c56ab2b7713883298fd9cb1b3905c56e.tar.gz
apk-tools-429e5984c56ab2b7713883298fd9cb1b3905c56e.tar.bz2
apk-tools-429e5984c56ab2b7713883298fd9cb1b3905c56e.tar.xz
apk-tools-429e5984c56ab2b7713883298fd9cb1b3905c56e.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".
Diffstat (limited to 'src/adb_walk_genadb.c')
0 files changed, 0 insertions, 0 deletions