- //TODO move cursor to calculated indentation
- wmove(stdscr, LINES - 1, 1);
- //TODO add text to footer
- wprintw(stdscr, "footer");
+ line = deck->header->next;
+ offset = next_blank(line->text, 0) + 1;
+ // add text to left footer
+ mvwprintw(stdscr,
+ LINES - 1, 3,
+ "%s", &line->text->text[offset]);
+
+ if(deck->headers > 2) {
+ line = deck->header->next->next;
+ offset = next_blank(line->text, 0) + 1;
+ // add text to right footer
+ mvwprintw(stdscr,
+ LINES - 1, COLS - line->length + offset - 3,
+ "%s", &line->text->text[offset]);
+ }