+void todo_line(WINDOW *win, todo_t *todo, int y, int x, int w, int full)
+{
+ char perc[16];
+ sprintf(perc, "%2d%%", todo->status);
+
+ int color = get_color(todo->cat);
+ if (color) wattron(win, COLOR_PAIR(color));
+ mvwaddch(win, y, 2, ACS_BLOCK);
+ if (color) wattroff(win, COLOR_PAIR(color));
+
+ mvwprintw(win, y, 4, "%04d-%02d-%02d %2d:%02d",
+ todo->due.year, todo->due.month+1, todo->due.day+1,
+ todo->due.hour, todo->due.min);
+ mvwprintw(win, y, 22, "%s",
+ todo->status == NEW ? "new" :
+ todo->status == DONE ? "done" : perc);
+ mvwprintw(win, y, 30, "%s: %s", todo->name, todo->desc);
+}