Blanking out the password while typing it would have little effect if
the arrow keys could recall is. So we don't save any lines in the
history when echo is off.
#define HISTORY_SIZE 64
static char *history[HISTORY_SIZE];
static int histIn = 0, histP = 0;
+static Boolean noEcho;
static void
SaveInHistory (char *cmd)
{
+ if(noEcho) return; // do not save password!
if (history[histIn] != NULL) {
free(history[histIn]);
history[histIn] = NULL;
} else PopUpMoveDialog(*buf);
}
-static Boolean noEcho;
-
void
EchoOn ()
{