]> ToastFreeware Gitweb - gregoa/bti.git/blobdiff - bti.c
Disable echo when reading the password
[gregoa/bti.git] / 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);
 
        fprintf(stdout, "Enter twitter password: ");
        fflush(stdout);
+       tcflow(0, TCOOFF);
        scanf("%79s", pwd);
        scanf("%79s", pwd);
+       tcflow(0, TCOON);
        fprintf(stdout, "\n");
 
        tcsetattr(0, TCSANOW, &old);
        fprintf(stdout, "\n");
 
        tcsetattr(0, TCSANOW, &old);