Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/aiomixer aiomixer: Honor terminal colors. Looks bett...



details:   https://anonhg.NetBSD.org/src/rev/2c9acf7e3b60
branches:  trunk
changeset: 1022436:2c9acf7e3b60
user:      nia <nia%NetBSD.org@localhost>
date:      Sun Jul 18 11:45:31 2021 +0000

description:
aiomixer: Honor terminal colors. Looks better in cool-retro-term.

diffstat:

 usr.bin/aiomixer/main.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 8e2813c4522d -r 2c9acf7e3b60 usr.bin/aiomixer/main.c
--- a/usr.bin/aiomixer/main.c   Sun Jul 18 09:30:36 2021 +0000
+++ b/usr.bin/aiomixer/main.c   Sun Jul 18 11:45:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.3 2021/07/15 06:57:10 nia Exp $ */
+/* $NetBSD: main.c,v 1.4 2021/07/18 11:45:31 nia Exp $ */
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -537,6 +537,7 @@
 
        if (has_colors()) {
                start_color();
+               use_default_colors();
                init_pair(COLOR_CONTROL_SELECTED, COLOR_BLUE, COLOR_BLACK);
                init_pair(COLOR_LEVELS, COLOR_GREEN, COLOR_BLACK);
                init_pair(COLOR_SET_SELECTED, COLOR_BLACK, COLOR_GREEN);



Home | Main Index | Thread Index | Old Index