Disable echo when reading the password
authorBen Boeckel <MathStuf@gmail.com>
Tue, 1 Dec 2009 23:59:45 +0000 (18:59 -0500)
committerBen Boeckel <MathStuf@gmail.com>
Tue, 1 Dec 2009 23:59:45 +0000 (18:59 -0500)
bti.c

diff --git a/bti.c b/bti.c
index a9a6d435bd89a2e7ee34397cf503953d933dd34b..30963b25a36f4711cf7e4e039c6f7f4b5b313213 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -670,7 +670,9 @@ void read_password(char *buf, size_t len)
 
        fprintf(stdout, "Enter twitter password: ");
        fflush(stdout);
+       tcflow(0, TCOOFF);
        scanf("%79s", pwd);
+       tcflow(0, TCOON);
        fprintf(stdout, "\n");
 
        tcsetattr(0, TCSANOW, &old);