Add an option to set the pane border lines style from a choice of single lines

(ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the
pane numbers). Lines that won't work on a non-UTF-8 terminal are translated
back into ACS when they are output.
This commit is contained in:
Nicholas Marriott
2020-05-14 16:49:08 +01:00
parent 97c8374855
commit 31621036ad
7 changed files with 234 additions and 56 deletions

View File

@ -59,6 +59,9 @@ static const char *options_table_visual_bell_list[] = {
static const char *options_table_pane_status_list[] = {
"off", "top", "bottom", NULL
};
static const char *options_table_pane_lines_list[] = {
"single", "double", "heavy", "simple", "number", NULL
};
static const char *options_table_set_clipboard_list[] = {
"off", "external", "on", NULL
};
@ -903,6 +906,14 @@ const struct options_table_entry options_table[] = {
.text = "Format of text in the pane status lines."
},
{ .name = "pane-border-lines",
.type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_WINDOW,
.choices = options_table_pane_lines_list,
.default_num = PANE_LINES_SINGLE,
.text = "Type of the pane type lines."
},
{ .name = "pane-border-status",
.type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_WINDOW,