From: Art Cancro Date: Sun, 3 Mar 2002 06:31:58 +0000 (+0000) Subject: * Added password starred-out entry to newprompt() and strprompt() X-Git-Tag: v7.86~6525 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=5f60f325953090dd765d4aa43e3b364cdc0372cf;p=citadel.git * Added password starred-out entry to newprompt() and strprompt() * Applied the above setting to password set/change in <.A>ide seredit --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index fe3a6ec4f..616605d1b 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 590.123 2002/03/03 06:31:58 ajc + * Added password starred-out entry to newprompt() and strprompt() + * Applied the above setting to password set/change in <.A>ide seredit + Revision 590.122 2002/03/03 06:18:45 ajc * Implemented the CREU server command to administratively create user accounts * Added the ability to create new user accounts to <.A>ide seredit @@ -3376,4 +3380,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/commands.c b/citadel/commands.c index ffd36bdab..ea115ed15 100644 --- a/citadel/commands.c +++ b/citadel/commands.c @@ -567,14 +567,25 @@ void getline(char *string, int lim) */ void strprompt(char *prompt, char *str, int len) { + int i; char buf[128]; + print_express(); color(DIM_WHITE); scr_printf("%s ", prompt); color(DIM_MAGENTA); scr_printf("["); color(BRIGHT_MAGENTA); - scr_printf("%s", str); + + if (len >= 0) { + scr_printf("%s", str); + } + else { + for (i=0; i