From: Ben Boeckel Date: Tue, 1 Dec 2009 23:59:45 +0000 (-0500) Subject: Disable echo when reading the password X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/114849566f85b148d2e7e52f342f40096bb4cead?ds=sidebyside Disable echo when reading the password --- diff --git a/bti.c b/bti.c index a9a6d43..30963b2 100644 --- 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);