Skip to content

Commit fd4f769

Browse files
committed
update dark color scheme
1 parent 90b9455 commit fd4f769

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ This example sets color 2 (green) for the plot line, color 3 (yellow) for the ax
249249
Sixth value: min error indicator color (optional)
250250
Example: -C 1,2,3,4,5,6 or -C 1,2 or -C 1
251251
Predefined color schemes:
252-
-C dark1 Blue-cyan-yellow scheme for dark terminals
253-
-C dark2 Purple-yellow-green scheme for dark terminals
252+
-C dark1 Red-green lines for dark terminals
253+
-C dark2 Blue-yellow lines for dark terminals
254254
-C light1 Green-blue-red scheme for light terminals
255255
-C light2 Blue-green-yellow scheme for light terminals
256256
Colors: 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=white

ttyplot.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ static void usage(void) {
148148
" Sixth value: min error indicator color (optional)\n"
149149
" Example: -C 1,2,3,4,5,6 or -C 1,2 or -C 1\n"
150150
" Predefined color schemes:\n"
151-
" -C dark1 Blue-cyan-yellow scheme for dark terminals\n"
152-
" -C dark2 Purple-yellow-green scheme for dark terminals\n"
151+
" -C dark1 Red-green lines for dark terminals\n"
152+
" -C dark2 Blue-yellow lines for dark terminals\n"
153153
" -C light1 Green-blue-red scheme for light terminals\n"
154154
" -C light2 Blue-green-yellow scheme for light terminals\n"
155155
" -v print the current version and exit\n"
@@ -168,21 +168,23 @@ static void version(void) {
168168
// Set a predefined color scheme
169169
static void set_color_scheme(const char *scheme_name) {
170170
if (strcmp(scheme_name, "dark1") == 0) {
171-
// Blue-cyan-yellow scheme for dark terminals
172-
colors[LINE_COLOR] = C_BLUE; // Blue for plot line
171+
// Red-green lines for dark terminals
172+
colors[LINE_COLOR] = C_RED; // Red for plot line
173+
line2color = C_GREEN; // Green for second plot line
173174
colors[AXES_COLOR] = C_CYAN; // Cyan for axes
174175
colors[TEXT_COLOR] = C_WHITE; // White for text
175176
colors[TITLE_COLOR] = C_YELLOW; // Yellow for title
176177
colors[MAX_ERROR_COLOR] = C_RED; // Red for max error
177178
colors[MIN_ERROR_COLOR] = C_GREEN; // Green for min error
178179
} else if (strcmp(scheme_name, "dark2") == 0) {
179-
// Purple-yellow-green scheme for dark terminals
180-
colors[LINE_COLOR] = C_MAGENTA; // Magenta for plot line
181-
colors[AXES_COLOR] = C_YELLOW; // Yellow for axes
182-
colors[TEXT_COLOR] = C_CYAN; // Cyan for text
180+
// Blue-yellow lines for dark terminals
181+
colors[LINE_COLOR] = C_BLUE; // Blue for plot line
182+
line2color = C_YELLOW; // Yellow for second plot line
183+
colors[AXES_COLOR] = C_CYAN; // Cyan for axes
184+
colors[TEXT_COLOR] = C_WHITE; // White for text
183185
colors[TITLE_COLOR] = C_GREEN; // Green for title
184186
colors[MAX_ERROR_COLOR] = C_RED; // Red for max error
185-
colors[MIN_ERROR_COLOR] = C_BLUE; // Blue for min error
187+
colors[MIN_ERROR_COLOR] = C_MAGENTA; // Magenta for min error
186188
} else if (strcmp(scheme_name, "light1") == 0) {
187189
// Green-blue-red scheme for light terminals
188190
colors[LINE_COLOR] = C_GREEN; // Green for plot line

0 commit comments

Comments
 (0)