-void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colors) {
-
- if(!line->text->value) {
- return;
+void setup_list_strings(void)
+{
+ const char *str;
+
+ /* utf8 can require 6 bytes */
+ if ((str = getenv("MDP_LIST_OPEN")) != NULL && strlen(str) <= 4*6) {
+ list_open1 = list_open2 = list_open3 = str;
+ } else {
+ if ((str = getenv("MDP_LIST_OPEN1")) != NULL && strlen(str) <= 4*6)
+ list_open1 = str;
+ if ((str = getenv("MDP_LIST_OPEN2")) != NULL && strlen(str) <= 4*6)
+ list_open2 = str;
+ if ((str = getenv("MDP_LIST_OPEN3")) != NULL && strlen(str) <= 4*6)
+ list_open3 = str;
+ }
+ if ((str = getenv("MDP_LIST_HEAD")) != NULL && strlen(str) <= 4*6) {
+ list_head1 = list_head2 = list_head3 = str;
+ } else {
+ if ((str = getenv("MDP_LIST_HEAD1")) != NULL && strlen(str) <= 4*6)
+ list_head1 = str;
+ if ((str = getenv("MDP_LIST_HEAD2")) != NULL && strlen(str) <= 4*6)
+ list_head2 = str;
+ if ((str = getenv("MDP_LIST_HEAD3")) != NULL && strlen(str) <= 4*6)
+ list_head3 = str;