diff options
author | ache <ache@FreeBSD.org> | 1997-09-29 08:53:38 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-09-29 08:53:38 +0000 |
commit | 620a15402ca567d1bb9f3ff04408b31d5195a26d (patch) | |
tree | bad95c33ccd79344b37c342113b585dc03504240 /contrib/opie/libopie/readpass.c | |
parent | e1721b38212f929793aa901252e7ce3b6e495d69 (diff) | |
download | FreeBSD-src-620a15402ca567d1bb9f3ff04408b31d5195a26d.zip FreeBSD-src-620a15402ca567d1bb9f3ff04408b31d5195a26d.tar.gz |
Upgrade to 2.31
Diffstat (limited to 'contrib/opie/libopie/readpass.c')
-rw-r--r-- | contrib/opie/libopie/readpass.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/opie/libopie/readpass.c b/contrib/opie/libopie/readpass.c index 4dc22e2..48b5699 100644 --- a/contrib/opie/libopie/readpass.c +++ b/contrib/opie/libopie/readpass.c @@ -1,7 +1,7 @@ /* readpass.c: The opiereadpass() library function. -%%% portions-copyright-cmetz -Portions of this software are Copyright 1996 by Craig Metz, All Rights +%%% portions-copyright-cmetz-96 +Portions of this software are Copyright 1996-1997 by Craig Metz, All Rights Reserved. The Inner Net License Version 2 applies to these portions of the software. You should have received a copy of the license with this software. If @@ -14,6 +14,9 @@ License Agreement applies to this software. History: + Modified by cmetz for OPIE 2.31. Use usleep() to delay after setting + the terminal attributes; this might help certain buggy + systems. Modified by cmetz for OPIE 2.3. Use TCSAFLUSH always. Modified by cmetz for OPIE 2.22. Replaced echo w/ flags. Really use FUNCTION. @@ -194,8 +197,16 @@ char *opiereadpass FUNCTION((buf, len, flags), char *buf AND int len AND int fla } #endif /* VEOF */ +#if HAVE_USLEEP + usleep(1); +#endif /* HAVE_USLEEP */ + if (tcsetattr(0, TCSAFLUSH, &attr)) goto error; + +#if HAVE_USLEEP + usleep(1); +#endif /* HAVE_USLEEP */ } #else /* unix */ erase[0] = CONTROL('H'); |