Add some comments
authorShea Levy <shea@shealevy.com>
Thu, 8 Sep 2011 06:47:18 +0000 (02:47 -0400)
committerShea Levy <shea@shealevy.com>
Thu, 8 Sep 2011 06:47:18 +0000 (02:47 -0400)
client/X11/xfreerdp.c

index de5dcb9..d930d45 100644 (file)
@@ -737,6 +737,7 @@ int main(int argc, char* argv[])
 
                printf("Password: ");
 
+               /* Turn off ECHO on stdin, but still echo newlines */
                if (tcgetattr(fileno(stdin), &orig_flags) != 0)
                {
                        perror(strerror(errno));
@@ -754,6 +755,7 @@ int main(int argc, char* argv[])
 
                fgets(password, 512 - 1, stdin);
 
+               /* Reset stdin to how it was */
                if (tcsetattr(fileno(stdin), TCSADRAIN, &orig_flags) != 0)
                {
                        tcsetattr(fileno(stdin), TCSANOW, &orig_flags);