mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-12-26 05:28:54 +00:00
Improve screen
This commit is contained in:
parent
5f9654d3b4
commit
498836eefc
@ -83,7 +83,7 @@ void LoginScreen::getCredentials(string &email, string &pass)
|
||||
mvprintw(startX+4, startY, "Password:");
|
||||
wattroff(stdscr, A_REVERSE);
|
||||
printw(" ");
|
||||
printw(pass.c_str());
|
||||
for(size_t i = 0; i < pass.length(); i++) printw("*");
|
||||
if(currPos == PASSWORD) getyx(stdscr, currY, currX);
|
||||
|
||||
// Validate button
|
||||
@ -106,6 +106,7 @@ void LoginScreen::getCredentials(string &email, string &pass)
|
||||
break;
|
||||
|
||||
case KEY_DOWN:
|
||||
case 9: // TAB
|
||||
currPos++;
|
||||
if(currPos > 2) currPos = 0;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user