From 01a71c73fdfa0d1aa93b11eb01d302ad3d998c1b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 19 Dec 2016 20:16:37 +1100 Subject: [PATCH] General: [Minix] Fix unsupported escape sequences in Minix. --- neofetch | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 2f7f8018..7810d988 100755 --- a/neofetch +++ b/neofetch @@ -3311,11 +3311,14 @@ main() { get_bold get_distro_colors - # If the script exits for any reason, unhide the cursor. - trap 'printf "\033[?25h\033[?7h"' EXIT + # Minix doesn't support these sequences. + if [[ "$TERM" != "minix" ]]; then + # If the script exits for any reason, unhide the cursor. + trap 'printf "\033[?25h\033[?7h"' EXIT - # Hide the cursor and disable line wrap - printf "\033[?25l\033[?7l" + # Hide the cursor and disable line wrap + printf "\033[?25l\033[?7l" + fi get_image_backend old_functions