Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh Process window size changes after xread(). [change w...
details: https://anonhg.NetBSD.org/src/rev/6dd1d1f06bc7
branches: trunk
changeset: 584230:6dd1d1f06bc7
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 11 22:23:42 2005 +0000
description:
Process window size changes after xread(). [change window size]
echo $COLUMS $LINES; will now print the new sizes immediately, instead
of after the second echo. From otto@OpenBSD
diffstat:
bin/ksh/edit.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 92b11b077319 -r 6dd1d1f06bc7 bin/ksh/edit.c
--- a/bin/ksh/edit.c Sun Sep 11 22:16:00 2005 +0000
+++ b/bin/ksh/edit.c Sun Sep 11 22:23:42 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: edit.c,v 1.16 2005/06/26 19:09:00 christos Exp $ */
+/* $NetBSD: edit.c,v 1.17 2005/09/11 22:23:42 christos Exp $ */
/*
* Command line editing - common code
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: edit.c,v 1.16 2005/06/26 19:09:00 christos Exp $");
+__RCSID("$NetBSD: edit.c,v 1.17 2005/09/11 22:23:42 christos Exp $");
#endif
@@ -135,11 +135,6 @@
{
int i;
-#if defined(TIOCGWINSZ)
- if (got_sigwinch)
- check_sigwinch();
-#endif /* TIOCGWINSZ */
-
x_mode(TRUE);
#ifdef EMACS
if (Flag(FEMACS) || Flag(FGMACS))
@@ -153,6 +148,11 @@
#endif
i = -1; /* internal error */
x_mode(FALSE);
+#if defined(TIOCGWINSZ)
+ if (got_sigwinch)
+ check_sigwinch();
+#endif /* TIOCGWINSZ */
+
return i;
}
Home |
Main Index |
Thread Index |
Old Index