Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp if editing is enabled when intr() is called, pri...



details:   https://anonhg.NetBSD.org/src/rev/0c7d9f5956c5
branches:  trunk
changeset: 477111:0c7d9f5956c5
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Oct 11 12:34:17 1999 +0000

description:
if editing is enabled when intr() is called, print a newline. (cosmetic fix)

diffstat:

 usr.bin/ftp/main.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 7c37929cd189 -r 0c7d9f5956c5 usr.bin/ftp/main.c
--- a/usr.bin/ftp/main.c        Mon Oct 11 11:55:27 1999 +0000
+++ b/usr.bin/ftp/main.c        Mon Oct 11 12:34:17 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.61 1999/10/09 03:00:56 lukem Exp $  */
+/*     $NetBSD: main.c,v 1.62 1999/10/11 12:34:17 lukem Exp $  */
 
 /*-
  * Copyright (c) 1996-1999 The NetBSD Foundation, Inc.
@@ -108,7 +108,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 10/9/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.61 1999/10/09 03:00:56 lukem Exp $");
+__RCSID("$NetBSD: main.c,v 1.62 1999/10/11 12:34:17 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -466,6 +466,8 @@
 {
 
        alarmtimer(0);
+       if (editing)            /* ugly hack to cleanup after editline */
+               write(fileno(ttyout), "\n", 1);
        siglongjmp(toplevel, 1);
 }
 



Home | Main Index | Thread Index | Old Index