I would like for there to be * characters or just a curser moving over with a blank.
I'm fairly sure I can do this with ncurses but this seems like using a bulldozer to crack a peanut.
Also when I use the endwin() command it clears the input (for example the following code
with g++ -lncurses
Code: Select all
#include <iostream>
#include <curses.h>
using namespace std;
int main() {
string password;
initscr();
noecho();
cout << "Enter Passphrase:\n";
cin >> password;
cout << "You will not see this\n";
endwin();
cout << "Passphrase entered successfully\n";
}
with a bit more work.
Anyone have any comments or other solutions for this?
Thanks in advance.
-Q


