promt improved

This commit is contained in:
Tristan Krause 2019-04-05 14:33:15 +02:00
parent 24688ff183
commit e0a4be7685
14 changed files with 91 additions and 29 deletions

View file

@ -15,7 +15,7 @@ void ViewInfo::setLabelClose(std::string label)
this->label_close = label;
}
void ViewInfo::setCall(std::function<void(int)> call)
void ViewInfo::setCall(call_t call)
{
calls[0] = call;
}
@ -34,7 +34,7 @@ void ViewInfo::draw()
wattroff(win, A_REVERSE);
}
std::function<void(int)> ViewInfo::keypress(int& key)
call_t ViewInfo::keypress(int& key)
{
switch(key)
{