diff --git a/driver/src/ui/view.cpp b/driver/src/ui/view.cpp index dd674eb..af3e590 100644 --- a/driver/src/ui/view.cpp +++ b/driver/src/ui/view.cpp @@ -60,6 +60,7 @@ void View::repaint() start_x = floor((size.ws_col - width) / 2.); start_y = floor((size.ws_row - height) / 2.); + curs_set(0); // hide cursor mvwin(win, start_y, start_x); clear(); wclear(win); diff --git a/driver/src/ui/view_promt.cpp b/driver/src/ui/view_promt.cpp index 6073d04..bd57829 100644 --- a/driver/src/ui/view_promt.cpp +++ b/driver/src/ui/view_promt.cpp @@ -2,7 +2,7 @@ void ViewPromt::draw() { - curs_set(2); // show cursor + curs_set(1); // show cursor int li = text_offset_y; int ci = 0; @@ -107,7 +107,6 @@ std::function ViewPromt::keypress(int& key) key = -1; // do return from view else ret = call_confirm; - curs_set(0); // hide cursor again break; default: break; @@ -117,6 +116,6 @@ std::function ViewPromt::keypress(int& key) input += (char) key; if(key != KEY_ENT) - repaint(); + repaint(); return ret; } diff --git a/driver/src/ui/view_selection.cpp b/driver/src/ui/view_selection.cpp index f28af8c..454c3ab 100644 --- a/driver/src/ui/view_selection.cpp +++ b/driver/src/ui/view_selection.cpp @@ -2,7 +2,7 @@ void ViewSelection::draw() { - + //curs_set(0); // hide cursor for(size_t i = 0; i < choices.size(); i++) { if(selection == i)