I have this simple Program and i have achieved hiding password with *.
printf("Password: ");
initscr();
noecho();
char passwd[MAX_PASS]
int p=0;
do{
passwd[p]=getch();
if(passwd[p]!='\n'){
printw("*");
}
p++;
}while(passwd[p-1]!='\n');
passwd[p-1]='\0';
endwin();
Im able to mask the password with '*' . The problem is that the first print won't show in my terminal, until endwin(); happens i think , when i get back what was printed in the terminal before..... any clues why and how im going to fix that? I mean, i want to show the first printf and the printf's before that.
refresh()after everyprintw()so that ncurses flushes the buffer to the terminal. - Pablostdio.h- anonmess