mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Add unicode_{column|header|border}_style to psql
With the unicode linestyle, this adds support to control if the column, header, or border style should be single or double line unicode characters. The default remains 'single'. In passing, clean up the border documentation and address some minor formatting/spelling issues. Pavel Stehule, with some additional changes by me.
This commit is contained in:
@ -3622,7 +3622,8 @@ psql_completion(const char *text, int start, int end)
|
||||
{"border", "columns", "expanded", "fieldsep", "fieldsep_zero",
|
||||
"footer", "format", "linestyle", "null", "numericlocale",
|
||||
"pager", "recordsep", "recordsep_zero", "tableattr", "title",
|
||||
"tuples_only", NULL};
|
||||
"tuples_only", "unicode_border_linestyle",
|
||||
"unicode_column_linestyle", "unicode_header_linestyle", NULL};
|
||||
|
||||
COMPLETE_WITH_LIST_CS(my_list);
|
||||
}
|
||||
@ -3643,6 +3644,16 @@ psql_completion(const char *text, int start, int end)
|
||||
|
||||
COMPLETE_WITH_LIST_CS(my_list);
|
||||
}
|
||||
else if (strcmp(prev_wd, "unicode_border_linestyle") == 0 ||
|
||||
strcmp(prev_wd, "unicode_column_linestyle") == 0 ||
|
||||
strcmp(prev_wd, "unicode_header_linestyle") == 0)
|
||||
{
|
||||
static const char *const my_list[] =
|
||||
{"single", "double", NULL};
|
||||
|
||||
COMPLETE_WITH_LIST_CS(my_list);
|
||||
|
||||
}
|
||||
}
|
||||
else if (strcmp(prev_wd, "\\unset") == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user