1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-12-25 13:08:54 +00:00

Improve screen

This commit is contained in:
Pierre HUBERT 2020-01-08 20:36:58 +01:00
parent 5f9654d3b4
commit 498836eefc

View File

@ -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;