Skip to content

Commit 42a2398

Browse files
committed
Disable obnoxious white background on arm targets
1 parent b81262f commit 42a2398

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Diff for: hdlc_rec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ int hdlc_rec_data_detect_any (int chan)
665665
text_color_set(DW_COLOR_ERROR);
666666
dw_printf ("Error opening %s to check TXINH.\n", stemp);
667667
dw_printf ("%s\n", strerror(e));
668-
return busy;
668+
return (busy != 1);
669669
}
670670

671671
if (read (fd, stemp, 1) != 1) {

Diff for: textcolor.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,19 @@ static const char clear_eos[] = "\e[0J";
111111
/* expected bright/bold (1) to get bright white background. */
112112
/* Makes no sense but I stumbled across that somewhere. */
113113

114-
static const char background_white[] = "\e[5;47m";
114+
static const char background_white[] = "\e[49m";
115115

116116
/* Whenever a dark color is used, the */
117117
/* background is reset and needs to be set again. */
118118

119-
static const char black[] = "\e[0;30m" "\e[5;47m";
120-
static const char red[] = "\e[1;31m" "\e[5;47m";
121-
static const char green[] = "\e[1;32m" "\e[5;47m";
122-
static const char yellow[] = "\e[1;33m" "\e[5;47m";
123-
static const char blue[] = "\e[1;34m" "\e[5;47m";
124-
static const char magenta[] = "\e[1;35m" "\e[5;47m";
125-
static const char cyan[] = "\e[1;36m" "\e[5;47m";
126-
static const char dark_green[] = "\e[0;32m" "\e[5;47m";
119+
static const char black[] = "\e[0;39m" "\e[49m";
120+
static const char red[] = "\e[1;31m" "\e[49m";
121+
static const char green[] = "\e[1;32m" "\e[49m";
122+
static const char yellow[] = "\e[1;33m" "\e[49m";
123+
static const char blue[] = "\e[1;34m" "\e[49m";
124+
static const char magenta[] = "\e[1;35m" "\e[49m";
125+
static const char cyan[] = "\e[1;36m" "\e[49m";
126+
static const char dark_green[] = "\e[0;32m" "\e[49m";
127127

128128
/* Clear from cursor to end of screen. */
129129

0 commit comments

Comments
 (0)