From be031a379528bea194aa3128c19efb183ae1869b Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Fri, 14 Jun 2019 22:07:50 +0800 Subject: [PATCH] Fix linehl color for Windows ecd (#14301) --- libr/cons/pal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libr/cons/pal.c b/libr/cons/pal.c index 66d4ff9633..c4bfc59f49 100644 --- a/libr/cons/pal.c +++ b/libr/cons/pal.c @@ -206,7 +206,11 @@ R_API void r_cons_pal_init(RConsContext *ctx) { ctx->cpal.gui_border = (RColor) RColor_BLACK; ctx->cpal.wordhl = (RColor) RColor_BGRED; // No good choice for fallback ansi16 color +#if __WINDOWS__ + ctx->cpal.linehl = (RColor) RCOLOR (ALPHA_BG, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 4); +#else ctx->cpal.linehl = (RColor) RCOLOR (ALPHA_BG, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 4); +#endif ctx->cpal.func_var = (RColor) RColor_WHITE; ctx->cpal.func_var_type = (RColor) RColor_BLUE;