2 #include "headers/render.h"
6 int init_tscolors(void);
8 int create_todowin(void);
19 /* need to error check this */
20 if (has_colors() == FALSE) {
21 fprintf(stderr, "Your terminal does not support color.\n");
23 /* maybe just return 1 */
24 /* exit_tscurses(); */
45 init_pair(TS_SELECTED, selected_color, COLOR_BLACK);
46 init_pair(TS_NONSELECTED, non_selected_color, COLOR_BLACK);
47 init_pair(TS_MENU_SELECTED, menu_selected_color, COLOR_BLACK);
48 init_pair(TS_MENU_NONSELECTED, menu_non_selected_color, COLOR_BLACK);
83 // ignore null character (it's fine even if strlen = 0)
84 for (int i = strlen(str)-1; i >= 0; i--) {