From 42a23988a6d11bc94f890320cc2a7305f12fe06b Mon Sep 17 00:00:00 2001 From: Alex Swedenburg Date: Thu, 12 Nov 2015 16:02:29 -0700 Subject: [PATCH] Disable obnoxious white background on arm targets --- hdlc_rec.c | 2 +- textcolor.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hdlc_rec.c b/hdlc_rec.c index 08b92a0..bac7e12 100644 --- a/hdlc_rec.c +++ b/hdlc_rec.c @@ -665,7 +665,7 @@ int hdlc_rec_data_detect_any (int chan) text_color_set(DW_COLOR_ERROR); dw_printf ("Error opening %s to check TXINH.\n", stemp); dw_printf ("%s\n", strerror(e)); - return busy; + return (busy != 1); } if (read (fd, stemp, 1) != 1) { diff --git a/textcolor.c b/textcolor.c index e0fd3a1..d4dfc9a 100644 --- a/textcolor.c +++ b/textcolor.c @@ -111,19 +111,19 @@ static const char clear_eos[] = "\e[0J"; /* expected bright/bold (1) to get bright white background. */ /* Makes no sense but I stumbled across that somewhere. */ -static const char background_white[] = "\e[5;47m"; +static const char background_white[] = "\e[49m"; /* Whenever a dark color is used, the */ /* background is reset and needs to be set again. */ -static const char black[] = "\e[0;30m" "\e[5;47m"; -static const char red[] = "\e[1;31m" "\e[5;47m"; -static const char green[] = "\e[1;32m" "\e[5;47m"; -static const char yellow[] = "\e[1;33m" "\e[5;47m"; -static const char blue[] = "\e[1;34m" "\e[5;47m"; -static const char magenta[] = "\e[1;35m" "\e[5;47m"; -static const char cyan[] = "\e[1;36m" "\e[5;47m"; -static const char dark_green[] = "\e[0;32m" "\e[5;47m"; +static const char black[] = "\e[0;39m" "\e[49m"; +static const char red[] = "\e[1;31m" "\e[49m"; +static const char green[] = "\e[1;32m" "\e[49m"; +static const char yellow[] = "\e[1;33m" "\e[49m"; +static const char blue[] = "\e[1;34m" "\e[49m"; +static const char magenta[] = "\e[1;35m" "\e[49m"; +static const char cyan[] = "\e[1;36m" "\e[49m"; +static const char dark_green[] = "\e[0;32m" "\e[49m"; /* Clear from cursor to end of screen. */