From 114849566f85b148d2e7e52f342f40096bb4cead Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 1 Dec 2009 18:59:45 -0500 Subject: [PATCH] Disable echo when reading the password --- bti.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5