mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-12-26 13:38:55 +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:");
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user