/* Request Cursor position report: */
static int u7_status = STATUS_GET;
-#ifdef FEAT_TERMINAL
+# ifdef FEAT_TERMINAL
/* Request foreground color report: */
static int rfg_status = STATUS_GET;
static int fg_r = 0;
static int bg_r = 255;
static int bg_g = 255;
static int bg_b = 255;
-#endif
+# endif
/* Request background color report: */
static int rbg_status = STATUS_GET;
return 0; /* no match found */
}
-#if defined(FEAT_TERMINAL) || defined(PROTO)
+#if (defined(FEAT_TERMINAL) && defined(FEAT_TERMRESPONSE)) || defined(PROTO)
/*
* Get the text foreground color, if known.
*/
fg->blue = tmp;
# endif
}
+# ifdef FEAT_TERMRESPONSE
else
term_get_fg_color(&fg->red, &fg->green, &fg->blue);
+# endif
if (cterm_normal_bg_color > 0)
{
bg->blue = tmp;
# endif
}
+# ifdef FEAT_TERMRESPONSE
else
term_get_bg_color(&bg->red, &bg->green, &bg->blue);
+# endif
}
vterm_state_set_default_colors(vterm_obtain_state(vterm), fg, bg);