- for(i=0; i < TABS; i++)
- mvwaddstr(editw, TABLINE, 16 * i + 3, tab_names[i]);
+ mvwaddch(editw, TABLINE+1, sum, UI_TEE_CHAR);
+ mvwaddch(editw, TABLINE+1, sum + width - 2, UI_TEE_CHAR);
+
+ mvwaddch(editw, TABLINE, sum, UI_ULCORNER_CHAR);
+ mvwaddch(editw, TABLINE, sum + 1, UI_LBOXLINE_CHAR);
+ mvwaddstr(editw, TABLINE, sum + 2, gettext(tab_names[i]));
+ mvwaddch(editw, TABLINE, sum + width - 3, UI_RBOXLINE_CHAR);
+ mvwaddch(editw, TABLINE, sum + width - 2, UI_URCORNER_CHAR);
+
+ if(i == tab) {
+ mvwaddch(editw, TABLINE+1, sum, UI_LRCORNER_CHAR);
+ for(j = 0; j < width - 3; j++)
+ mvwaddstr(editw, TABLINE+1, sum + j + 1, " ");
+ mvwaddch(editw, TABLINE+1, sum + width - 2, UI_LLCORNER_CHAR);
+ }
+ sum += width;
+ }