Skip to content

Commit

Permalink
Fix cursor starts in status window on start #7
Browse files Browse the repository at this point in the history
  • Loading branch information
labseven committed Apr 13, 2019
1 parent 8f0885f commit d207f74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ int main(int argc, char *argv[]) {
char test_msg[] = "Test mode";
print_status(test_msg, status_win);


// Move cursor to starting location and redraw
wmove(canvas_win, cursor_y_to_canvas(cursor), cursor_x_to_canvas(cursor));
wrefresh(status_win);
wrefresh(canvas_win); // Refresh Canvas last so it gets the cursor


//// Main loop
int last_arrow_direction = KEY_RIGHT;
Expand Down

0 comments on commit d207f74

Please sign in to comment.