diff options
author | marcinzelent <marcin@zelent.net> | 2017-08-02 09:33:08 +0200 |
---|---|---|
committer | marcinzelent <marcin@zelent.net> | 2017-08-02 09:33:08 +0200 |
commit | 9a845595ebd15b88e1c684f5064efaa3d8a15dcb (patch) | |
tree | d0db2f2ea3ee741ac2dcff3421eb8746fea8fb76 /timetracker.c | |
parent | e561eedea2344ccbfe35d609220911488abe34bb (diff) |
Added cursor in new activity description input box.
Diffstat (limited to 'timetracker.c')
-rw-r--r-- | timetracker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/timetracker.c b/timetracker.c index e0ebe74..95067b5 100644 --- a/timetracker.c +++ b/timetracker.c @@ -136,11 +136,11 @@ void edit_new_activity() WINDOW *win = newwin(10, 50, (LINES-10)/2, (COLS-50)/2); wborder(win, '|', '|', '-', '-', '+', '+', '+', '+'); mvwprintw(win, 1, 1, "What are you doing: "); - echo(); + curs_set(1); mvwgetstr(win, 2, 1, new_activity.description); noecho(); - + curs_set(0); new_activity.description[strcspn(new_activity.description, "\n")] = 0; wrefresh(win); } |