/* tui_apply_style resets the style entirely, so be sure to call it
before applying ATTRS. */
- tui_apply_style (win, (highlight_flag
- ? tui_active_border_style.style ()
- : tui_border_style.style ()));
+ if (cli_styling)
+ tui_apply_style (win, (highlight_flag
+ ? tui_active_border_style.style ()
+ : tui_border_style.style ()));
wattron (win, attrs);
#ifdef HAVE_WBORDER
wborder (win, tui_border_vline, tui_border_vline,