cursor bug fixed
This commit is contained in:
parent
8e196c79eb
commit
42e6a6d12d
|
@ -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);
|
||||
|
|
|
@ -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<void(int)> 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<void(int)> ViewPromt::keypress(int& key)
|
|||
input += (char) key;
|
||||
|
||||
if(key != KEY_ENT)
|
||||
repaint();
|
||||
repaint();
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
void ViewSelection::draw()
|
||||
{
|
||||
|
||||
//curs_set(0); // hide cursor
|
||||
for(size_t i = 0; i < choices.size(); i++)
|
||||
{
|
||||
if(selection == i)
|
||||
|
|
Loading…
Reference in a new issue