Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Put back filter(3) I mistakenly removed in r1.29



details:   https://anonhg.NetBSD.org/src/rev/afbe6edb8ba5
branches:  trunk
changeset: 352183:afbe6edb8ba5
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Mar 20 10:20:16 2017 +0000

description:
Put back filter(3) I mistakenly removed in r1.29

diffstat:

 lib/libcurses/screen.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r a882c1db958b -r afbe6edb8ba5 lib/libcurses/screen.c
--- a/lib/libcurses/screen.c    Mon Mar 20 07:31:28 2017 +0000
+++ b/lib/libcurses/screen.c    Mon Mar 20 10:20:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: screen.c,v 1.32 2017/02/17 11:18:38 roy Exp $  */
+/*     $NetBSD: screen.c,v 1.33 2017/03/20 10:20:16 roy Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)screen.c   8.2 (blymn) 11/27/2001";
 #else
-__RCSID("$NetBSD: screen.c,v 1.32 2017/02/17 11:18:38 roy Exp $");
+__RCSID("$NetBSD: screen.c,v 1.33 2017/03/20 10:20:16 roy Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -45,8 +45,17 @@
 
 static int filtered;
 
+static void     __delscreen(SCREEN *);
 
-static void     __delscreen(SCREEN *);
+/*
+ * filter has to be called before either initscr or newterm.
+ */
+void
+filter(void)
+{
+
+       filtered = TRUE;
+}
 
 /*
  * set_term --



Home | Main Index | Thread Index | Old Index