summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/prompt.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-08-09 15:34:11 +0000
committerbrian <brian@FreeBSD.org>1998-08-09 15:34:11 +0000
commit00d5b6a21323318be6e04a9ddc6d51bc2fbf8fb7 (patch)
treed242a6ddbbffcccd0fb2d7549e187e1c30f2ce11 /usr.sbin/ppp/prompt.c
parent07b6ec539fe3c75fc30da67afd40bd6c194b1d1d (diff)
downloadFreeBSD-src-00d5b6a21323318be6e04a9ddc6d51bc2fbf8fb7.zip
FreeBSD-src-00d5b6a21323318be6e04a9ddc6d51bc2fbf8fb7.tar.gz
When entering ``term'' mode, don't output any messages until
the device is successfully opened. If we fail to open it, mention the fact. Also go back into command mode as soon as the device is closed rather than waiting for the user to type something before noticing.
Diffstat (limited to 'usr.sbin/ppp/prompt.c')
-rw-r--r--usr.sbin/ppp/prompt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/ppp/prompt.c b/usr.sbin/ppp/prompt.c
index 5c5e1e0..14daa0c 100644
--- a/usr.sbin/ppp/prompt.c
+++ b/usr.sbin/ppp/prompt.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: prompt.c,v 1.9 1998/07/04 22:04:12 brian Exp $
+ * $Id: prompt.c,v 1.10 1998/08/07 18:42:50 brian Exp $
*/
#include <sys/param.h>
@@ -453,9 +453,6 @@ prompt_TtyTermMode(struct prompt *p, struct datalink *dl)
{
int stat;
- prompt_Printf(p, "Entering terminal mode on %s.\n", dl->name);
- prompt_Printf(p, "Type `~?' for help.\n");
-
if (p->Term == stdout)
tcsetattr(p->fd_in, TCSADRAIN, &p->comtio);
OpenPOWER on IntegriCloud