summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-08-24 19:12:10 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-08-24 19:12:10 +0000
commitc1efe1a7aa77dbffd581b71e4928ad63d02fdf24 (patch)
treee199f8057b560e1ae75735734731d99640d8d858
parent56716806d434fc206a8be6034a091b608c8af4e4 (diff)
Notes
-rw-r--r--lib/libncurses/Makefile6
-rw-r--r--lib/libncurses/curses.h7
-rw-r--r--lib/libncurses/lib_kernel.c6
3 files changed, 16 insertions, 3 deletions
diff --git a/lib/libncurses/Makefile b/lib/libncurses/Makefile
index ae392838cb253..90d56f44e0839 100644
--- a/lib/libncurses/Makefile
+++ b/lib/libncurses/Makefile
@@ -1,16 +1,16 @@
# Makefile for ncurses
-# $Id: Makefile,v 1.18 1996/08/30 01:58:36 peter Exp $
+# $Id: Makefile,v 1.19 1996/09/05 17:14:22 bde Exp $
LIB= ncurses
SHLIB_MAJOR= 3
-SHLIB_MINOR= 0
+SHLIB_MINOR= 1
SRCS= lib_kernel.c lib_pad.c lib_bkgd.c \
lib_unctrl.c lib_raw.c lib_vidattr.c lib_trace.c lib_beep.c \
lib_doupdate.c lib_refresh.c lib_initscr.c lib_newwin.c lib_addch.c \
lib_addstr.c lib_scroll.c lib_clreol.c lib_touch.c lib_mvcur.c lib_keyname.c\
lib_delwin.c lib_endwin.c lib_clrbot.c lib_move.c lib_printw.c \
lib_scanw.c lib_erase.c lib_getch.c lib_options.c lib_acs.c lib_slk.c\
- lib_box.c lib_clear.c lib_delch.c lib_insch.c \
+ lib_box.c lib_clear.c lib_delch.c lib_insch.c lib_instr.c \
lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \
lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_color.c \
lib_insstr.c lib_insdel.c lib_twait.c lib_window.c copyright.c
diff --git a/lib/libncurses/curses.h b/lib/libncurses/curses.h
index 247aab8bd8266..0800a8a1284d4 100644
--- a/lib/libncurses/curses.h
+++ b/lib/libncurses/curses.h
@@ -166,6 +166,8 @@ extern int LINES, COLS;
extern "C" {
#endif
+extern int resizeterm (int, int);
+
#if 0 /* MYTINFO not have it */
extern char ttytype[]; /* needed for backward compatibility */
#endif
@@ -278,6 +280,7 @@ extern int werase(WINDOW *);
extern int wgetch(WINDOW *);
extern int wgetnstr(WINDOW *,char *,int maxlen);
extern int whline(WINDOW *,chtype,int);
+extern int winnstr(WINDOW *, char *, int);
extern int winsch(WINDOW *,chtype);
extern int winsdelln(WINDOW *,int);
extern int winsnstr(WINDOW *,char *,int);
@@ -361,6 +364,7 @@ extern int slk_touch(void);
#define vline(ch, n) wvline(stdscr, ch, n)
#define winsstr(w, s) winsnstr(w, s, 0)
+#define winstr(w, s) winnstr(w, s, -1)
#define redrawwin(w) wredrawln(w, 0, w->_maxy+1)
#define waddstr(win,str) waddnstr(win,str,-1)
@@ -393,6 +397,7 @@ extern int slk_touch(void);
#define deleteln() winsdelln(stdscr, -1)
#define wdeleteln(w) winsdelln(w, -1)
#define refresh() wrefresh(stdscr)
+#define innstr(s,n) winnstr(stdscr,s,n)
#define insch(c) winsch(stdscr,c)
#define delch() wdelch(stdscr)
#define setscrreg(t,b) wsetscrreg(stdscr,t,b)
@@ -418,6 +423,7 @@ extern int slk_touch(void);
#define mvwgetstr(win,y,x,str) (wmove(win,y,x) == ERR ? ERR : wgetstr(win,str))
#define mvwinch(win,y,x) (wmove(win,y,x) == ERR ? ERR : winch(win))
#define mvwdelch(win,y,x) (wmove(win,y,x) == ERR ? ERR : wdelch(win))
+#define mvwinnstr(win,y,x,s,n) (wmove(win,y,x) == ERR ? ERR : winnstr(win,s,n))
#define mvwinsch(win,y,x,c) (wmove(win,y,x) == ERR ? ERR : winsch(win,c))
#define mvaddch(y,x,ch) mvwaddch(stdscr,y,x,ch)
#define mvgetch(y,x) mvwgetch(stdscr,y,x)
@@ -426,6 +432,7 @@ extern int slk_touch(void);
#define mvgetstr(y,x,str) mvwgetstr(stdscr,y,x,str)
#define mvinch(y,x) mvwinch(stdscr,y,x)
#define mvdelch(y,x) mvwdelch(stdscr,y,x)
+#define mvinnstr(y,x,s,n) mvwinnstr(stdscr,y,x,s,n)
#define mvinsch(y,x,c) mvwinsch(stdscr,y,x,c)
#define mvwinsstr(w, y, x, s) (wmove(w,y,x) == ERR ? ERR : winsstr(w,s))
#define mvwinsnstr(w, y, x, s, n) (wmove(w,y,x) == ERR ? ERR : winsnstr(w,s,n))
diff --git a/lib/libncurses/lib_kernel.c b/lib/libncurses/lib_kernel.c
index a96cbfccdc8f5..a1d0a85c5a9e6 100644
--- a/lib/libncurses/lib_kernel.c
+++ b/lib/libncurses/lib_kernel.c
@@ -310,3 +310,9 @@ int resetty()
return OK;
}
+
+int
+resizeterm(int ToLines, int ToCols)
+{
+ return OK;
+}