Skip to content

Commit 741367e

Browse files
committed
libvncclient: make sure password prompt is shown on win32
1 parent e1fbb11 commit 741367e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libvncclient/vncviewer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static char* ReadPassword(rfbClient* client) {
6868
if(tcsetattr(fileno(stdin),TCSAFLUSH,&noecho)!=0) return p;
6969
#endif
7070
fprintf(stderr,"Password: ");
71+
fflush(stderr);
7172
i=0;
7273
while(1) {
7374
int c=fgetc(stdin);

0 commit comments

Comments
 (0)