+ WINDOW *win;
+ int attrs;
+
+ win = win_info->handle.get ();
+ if (highlight_flag)
+ attrs = tui_active_border_attrs;
+ else
+ attrs = tui_border_attrs;
+
+ /* tui_apply_style resets the style entirely, so be sure to call it
+ before applying ATTRS. */
+ 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,
+ tui_border_hline, tui_border_hline,
+ tui_border_ulcorner, tui_border_urcorner,
+ tui_border_llcorner, tui_border_lrcorner);
+#else
+ box (win, tui_border_vline, tui_border_hline);
+#endif
+ if (!win_info->title.empty ())