Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses * Added rcs id line to files missing it.
details: https://anonhg.NetBSD.org/src/rev/c1bdfab12b37
branches: trunk
changeset: 485300:c1bdfab12b37
user: blymn <blymn%NetBSD.org@localhost>
date: Mon Apr 24 14:09:41 2000 +0000
description:
* Added rcs id line to files missing it.
* Added code to __restartwin to restore meta and cursor visibility states
* Added code to __stopwin to disable meta.
* Added the *line group of functions for drawing character lines.
diffstat:
lib/libcurses/Makefile | 4 +-
lib/libcurses/PSD.doc/fns.doc | 60 ++++++++++++++++
lib/libcurses/acs.c | 7 +-
lib/libcurses/attributes.c | 7 +-
lib/libcurses/background.c | 7 +-
lib/libcurses/bell.c | 7 +-
lib/libcurses/border.c | 7 +-
lib/libcurses/clearok.c | 7 +-
lib/libcurses/color.c | 7 +-
lib/libcurses/copywin.c | 7 +-
lib/libcurses/curs_set.c | 18 ++++-
lib/libcurses/curses.3 | 45 ++++++++++++-
lib/libcurses/curses.h | 10 ++-
lib/libcurses/curses_private.h | 4 +-
lib/libcurses/flushok.c | 7 +-
lib/libcurses/getyx.c | 7 +-
lib/libcurses/inch.c | 7 +-
lib/libcurses/insdelln.c | 7 +-
lib/libcurses/keypad.c | 7 +-
lib/libcurses/leaveok.c | 7 +-
lib/libcurses/line.c | 150 +++++++++++++++++++++++++++++++++++++++++
lib/libcurses/meta.c | 22 +++++-
lib/libcurses/nodelay.c | 7 +-
lib/libcurses/notimeout.c | 7 +-
lib/libcurses/scrollok.c | 7 +-
lib/libcurses/timeout.c | 7 +-
lib/libcurses/tstp.c | 13 +++-
lib/libcurses/underscore.c | 7 +-
28 files changed, 429 insertions(+), 30 deletions(-)
diffs (truncated from 966 to 300 lines):
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/Makefile
--- a/lib/libcurses/Makefile Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/Makefile Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2000/04/22 13:29:01 blymn Exp $
+# $NetBSD: Makefile,v 1.27 2000/04/24 14:09:41 blymn Exp $
# @(#)Makefile 8.2 (Berkeley) 1/2/94
CPPFLAGS+=#-DTFILE=\"/dev/ttyp0\"
@@ -9,7 +9,7 @@
copywin.c cr_put.c ctrace.c cur_hash.c curses.c curs_set.c delch.c \
deleteln.c delwin.c erase.c flushok.c fullname.c getch.c getstr.c \
getyx.c id_subwins.c idlok.c inch.c initscr.c insch.c insdelln.c \
- insertln.c keypad.c leaveok.c longname.c meta.c move.c mvwin.c \
+ insertln.c keypad.c leaveok.c line.c longname.c meta.c move.c mvwin.c \
newwin.c nodelay.c notimeout.c overlay.c overwrite.c printw.c \
putchar.c refresh.c scanw.c scroll.c scrollok.c setterm.c standout.c \
timeout.c toucholap.c touchwin.c tscroll.c tstp.c tty.c unctrl.c \
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/PSD.doc/fns.doc
--- a/lib/libcurses/PSD.doc/fns.doc Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/PSD.doc/fns.doc Mon Apr 24 14:09:41 2000 +0000
@@ -483,6 +483,16 @@
.De
Check if terminal has colors.
.Ds
+.Fn hline "chtype ch" "int count"
+.De
+Draw a horizontal line of the character ch starting at the current
+cursor position and moving towards the rightmost column. At most
+.Vn count
+characters will be written, less if the edge of the screen is reached
+before
+.Vn count
+is reached.
+.Ds
.Fn idlok "WINDOW *win" "int boolf"
.De
Reserved for future use.
@@ -659,6 +669,14 @@
should be used to move the cursor position,
so that the routines know what's going on.
.Ds
+.Fn mvhline "int y" "int x" "chtype ch" "int count"
+.De
+Moves the cursor to the position
+.Vn (y ,
+.Vn x )
+and then draws a horizontal line in the same manner as
+.Fn hline .
+.Ds
.Fn mvprintw "int y" "int x" "const char *fmt" "..."
.De
Equivalent to:
@@ -675,6 +693,34 @@
scanw(fmt, ...);
.)l
.Ds
+.Fn mvvline "int y" "int x" "chtype ch" "int count"
+.De
+Moves the cursor to the position
+.Vn (y ,
+.Vn x )
+and then draws a vertical line in the same manner as
+.Fn vline .
+.Ds
+.Fn mvwhline "WINDOW *win" "int y" "int x" "chtype ch" "int count"
+.De
+Moves the cursor to the position
+.Vn (y ,
+.Vn x )
+on window
+.Vn win
+and then draws a horizontal line in the same manner as
+.Fn whline .
+.Ds
+.Fn mvwvline "WINDOW *win" "int y" "int x" "chtype ch" "int count"
+.De
+Moves the cursor to the position
+.Vn (y ,
+.Vn x )
+on window
+.Vn win
+and then draws a horizontal line in the same manner as
+.Fn wvline .
+.Ds
.Fn mvwin "WINDOW *win" "int y" "int x"
.De
Move the home position of the window
@@ -1122,6 +1168,18 @@
is guaranteed to function correctly. The results of attempting more
than one character of push back is undefined.
.Ds
+.Fn vline "chtype ch" "int count"
+.De
+Draws a vertical line of character
+.Vn ch
+starting at the current cursor location and moving towards the bottom
+of the screen. At most
+.Vn count
+characters are drawn, less if the bottom of the screen is reached
+before
+.Vn count
+expires.
+.Ds
.Fn vwprintw "WINDOW *win" "const char *fmt" "va_list ap"
.De
Identical to
@@ -1167,6 +1225,7 @@
.Fn werase "WINDOW *win"
.Fn wgetch "WINDOW *win"
.Fn wgetstr "WINDOW *win" "char *str"
+.Fn whline "WINDOW *win" "chtype ch" "int count"
.Fn winch "WINDOW *win" \(dg
.Fn winsch "WINDOW *win" "char c"
.Fn winsdelln "WINDOW *win" "int n"
@@ -1181,4 +1240,5 @@
.Fn wtimeout "WINDOW *win" "int delay"
.Fn wunderend "WINDOW *win"
.Fn wunderscore "WINDOW *win"
+.Fn wvline "WINDOW *win" "chtype ch" "int count"
.Dg
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/acs.c
--- a/lib/libcurses/acs.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/acs.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acs.c,v 1.6 2000/04/15 13:17:02 blymn Exp $ */
+/* $NetBSD: acs.c,v 1.7 2000/04/24 14:09:42 blymn Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: acs.c,v 1.7 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/attributes.c
--- a/lib/libcurses/attributes.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/attributes.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: attributes.c,v 1.5 2000/04/16 09:48:09 jdc Exp $ */
+/* $NetBSD: attributes.c,v 1.6 2000/04/24 14:09:42 blymn Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: attributes.c,v 1.6 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/background.c
--- a/lib/libcurses/background.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/background.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: background.c,v 1.5 2000/04/18 22:44:21 jdc Exp $ */
+/* $NetBSD: background.c,v 1.6 2000/04/24 14:09:42 blymn Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: background.c,v 1.6 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/bell.c
--- a/lib/libcurses/bell.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/bell.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bell.c,v 1.3 2000/04/20 09:36:11 blymn Exp $ */
+/* $NetBSD: bell.c,v 1.4 2000/04/24 14:09:42 blymn Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: bell.c,v 1.4 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/border.c
--- a/lib/libcurses/border.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/border.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: border.c,v 1.5 2000/04/18 22:45:24 jdc Exp $ */
+/* $NetBSD: border.c,v 1.6 2000/04/24 14:09:42 blymn Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: border.c,v 1.6 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/clearok.c
--- a/lib/libcurses/clearok.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/clearok.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clearok.c,v 1.3 2000/04/15 13:17:03 blymn Exp $ */
+/* $NetBSD: clearok.c,v 1.4 2000/04/24 14:09:42 blymn Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: clearok.c,v 1.4 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/color.c
--- a/lib/libcurses/color.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/color.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: color.c,v 1.7 2000/04/21 15:54:42 jdc Exp $ */
+/* $NetBSD: color.c,v 1.8 2000/04/24 14:09:42 blymn Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -36,6 +36,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: color.c,v 1.8 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include "curses.h"
#include "curses_private.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/copywin.c
--- a/lib/libcurses/copywin.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/copywin.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: copywin.c,v 1.4 2000/04/23 14:14:49 blymn Exp $ */
+/* $NetBSD: copywin.c,v 1.5 2000/04/24 14:09:42 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
@@ -29,6 +29,11 @@
*
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: copywin.c,v 1.5 2000/04/24 14:09:42 blymn Exp $");
+#endif /* not lint */
+
#include <ctype.h>
#include <string.h>
#include "curses.h"
diff -r 86b5cc6c0316 -r c1bdfab12b37 lib/libcurses/curs_set.c
--- a/lib/libcurses/curs_set.c Mon Apr 24 13:23:59 2000 +0000
+++ b/lib/libcurses/curs_set.c Mon Apr 24 14:09:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curs_set.c,v 1.2 2000/04/23 14:17:32 blymn Exp $ */
+/* $NetBSD: curs_set.c,v 1.3 2000/04/24 14:09:43 blymn Exp $ */
/*-
* Copyright (c) 1998-2000 Brett Lymn
@@ -29,6 +29,11 @@
*
Home |
Main Index |
Thread Index |
Old Index