Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Only reset the terminal if we have a tty (Boris ...
details: https://anonhg.NetBSD.org/src/rev/179b16a1ad1a
branches: trunk
changeset: 342137:179b16a1ad1a
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 08 12:56:55 2015 +0000
description:
Only reset the terminal if we have a tty (Boris Ranto)
diffstat:
lib/libedit/el.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 0083855f5a01 -r 179b16a1ad1a lib/libedit/el.c
--- a/lib/libedit/el.c Tue Dec 08 12:51:21 2015 +0000
+++ b/lib/libedit/el.c Tue Dec 08 12:56:55 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: el.c,v 1.73 2014/06/18 18:12:28 christos Exp $ */
+/* $NetBSD: el.c,v 1.74 2015/12/08 12:56:55 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
#else
-__RCSID("$NetBSD: el.c,v 1.73 2014/06/18 18:12:28 christos Exp $");
+__RCSID("$NetBSD: el.c,v 1.74 2015/12/08 12:56:55 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -135,7 +135,8 @@
terminal_end(el);
keymacro_end(el);
map_end(el);
- tty_end(el);
+ if (!(el->el_flags & NO_TTY))
+ tty_end(el);
ch_end(el);
search_end(el);
hist_end(el);
Home |
Main Index |
Thread Index |
Old Index