1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-07-06 07:29:16 +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:"); mvprintw(startX+4, startY, "Password:");
wattroff(stdscr, A_REVERSE); wattroff(stdscr, A_REVERSE);
printw(" "); printw(" ");
printw(pass.c_str()); for(size_t i = 0; i < pass.length(); i++) printw("*");
if(currPos == PASSWORD) getyx(stdscr, currY, currX); if(currPos == PASSWORD) getyx(stdscr, currY, currX);
// Validate button // Validate button
@ -106,6 +106,7 @@ void LoginScreen::getCredentials(string &email, string &pass)
break; break;
case KEY_DOWN: case KEY_DOWN:
case 9: // TAB
currPos++; currPos++;
if(currPos > 2) currPos = 0; if(currPos > 2) currPos = 0;
break; break;