[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Do not reset color definitions
From: |
Mihail Konev |
Subject: |
[PATCH] Do not reset color definitions |
Date: |
Fri, 16 Dec 2016 03:25:02 +0500 |
They could be set by user.
---
Or is it better to use terminfo() == "linux" check,
with NCURSES_NO_COLORDEF_RESET envvar?
ncurses/base/lib_color.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/ncurses/base/lib_color.c b/ncurses/base/lib_color.c
index 9b4d2b8f8d85..6ab991148afa 100644
--- a/ncurses/base/lib_color.c
+++ b/ncurses/base/lib_color.c
@@ -272,9 +272,7 @@ reset_color_pair(NCURSES_SP_DCL0)
}
/*
- * Reset color pairs and definitions. Actually we do both more to accommodate
- * badly-written terminal descriptions than for the relatively rare case where
- * someone has changed the color definitions.
+ * Reset color pairs.
*/
NCURSES_EXPORT(bool)
NCURSES_SP_NAME(_nc_reset_colors) (NCURSES_SP_DCL0)
@@ -287,14 +285,6 @@ NCURSES_SP_NAME(_nc_reset_colors) (NCURSES_SP_DCL0)
if (reset_color_pair(NCURSES_SP_ARG))
result = TRUE;
-#ifdef USE_TERM_DRIVER
- result = CallDriver(SP_PARM, td_rescolors);
-#else
- if (orig_colors != 0) {
- NCURSES_PUTP2("orig_colors", orig_colors);
- result = TRUE;
- }
-#endif
returnBool(result);
}
--
2.9.2
- [PATCH] Do not reset color definitions,
Mihail Konev <=