Merge pull request #552 from dylanaraps/minixfix

General: [Minix] Fix unsupported escape sequences in Minix.
This commit is contained in:
Dylan Araps 2016-12-20 19:49:02 +11:00 committed by GitHub
commit 5fbab59748

View file

@ -3338,11 +3338,14 @@ main() {
get_bold get_bold
get_distro_colors get_distro_colors
# Minix doesn't support these sequences.
if [[ "$TERM" != "minix" ]]; then
# If the script exits for any reason, unhide the cursor. # If the script exits for any reason, unhide the cursor.
trap 'printf "\033[?25h\033[?7h"' EXIT trap 'printf "\033[?25h\033[?7h"' EXIT
# Hide the cursor and disable line wrap # Hide the cursor and disable line wrap
printf "\033[?25l\033[?7l" printf "\033[?25l\033[?7l"
fi
get_image_backend get_image_backend
old_functions old_functions