I am writing a program for my college class It has to record a password, but it cant display it on the screen. It is a unix based enviroment. Does this look correct to you guys? Code: main() { int i; char buffer[80]; initscr(); printw("Please enter a password => "); refresh(); noecho(); while((buffer[i] = getch()) != '\n') i++; printw("\nPassword is %s - press return to continue.",buffer); refresh(); getch(); endwin(); }