+ // print the content of the label
+ // the label is printed as is
+ do {
+ waddnwstr(window, i, 1);
+ i++;
+ } while (*i != L']');
+
+ length_link_name = i - 1 - start_link_name;
+
+ i++;
+ i++;
+
+ start_url = i;
+
+ while (*i != L')') i++;
+
+ url_num = url_add(start_link_name, length_link_name, start_url, i - start_url, 0, 0);
+
+ wprintw(window, " [%d]", url_num);
+
+ // turn highlighting and underlining off
+ wattroff(window, A_UNDERLINE);
+ wattron(window, COLOR_PAIR(CP_WHITE));
+
+ } else {
+ wprintw(window, "[");
+ }
+
+ } else switch(*i) {