ncurses 5.6 - patch 20071217

This commit is contained in:
Thomas E. Dickey 2007-12-16 00:40:08 +00:00
parent 9378ce0407
commit f0af2558d3
4 changed files with 527 additions and 365 deletions

6
NEWS
View File

@ -25,7 +25,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
-- $Id: NEWS,v 1.1186 2007/12/01 19:38:49 tom Exp $
-- $Id: NEWS,v 1.1187 2007/12/16 00:23:41 tom Exp $
-------------------------------------------------------------------------------
This is a log of changes that ncurses has gone through since Zeyd started
@ -45,6 +45,10 @@ See the AUTHORS file for the corresponding full names.
Changes through 1.9.9e did not credit all contributions;
it is not possible to add this information.
20071215
+ add several functions to C++ binding which wrap C functions that
pass a WINDOW* parameter (request by Chris Lee).
20071201
+ add note about configure options needed for Berkeley database to the
INSTALL file.

View File

@ -42,7 +42,7 @@
#include "internal.h"
#include "cursesw.h"
MODULE_ID("$Id: cursesw.cc,v 1.48 2007/03/24 19:00:58 tom Exp $")
MODULE_ID("$Id: cursesw.cc,v 1.49 2007/12/15 23:01:57 tom Exp $")
#define COLORS_NEED_INITIALIZATION -1
#define COLORS_NOT_INITIALIZED 0
@ -84,6 +84,29 @@ NCursesWindow::scanw(int y, int x, const char* fmt, ...)
}
int
NCursesWindow::scanw(const char* fmt, va_list args)
{
int result = ERR;
result = ::vw_scanw (w, const_cast<NCURSES_CONST char *>(fmt), args);
return result;
}
int
NCursesWindow::scanw(int y, int x, const char* fmt, va_list args)
{
int result = ERR;
if (::wmove(w, y, x) != ERR) {
result = ::vw_scanw (w, const_cast<NCURSES_CONST char *>(fmt), args);
}
return result;
}
int
NCursesWindow::printw(const char * fmt, ...)
{
@ -109,6 +132,25 @@ NCursesWindow::printw(int y, int x, const char * fmt, ...)
}
int
NCursesWindow::printw(const char * fmt, va_list args)
{
int result = ::vw_printw(w, fmt, args);
return result;
}
int
NCursesWindow::printw(int y, int x, const char * fmt, va_list args)
{
int result = ::wmove(w, y, x);
if (result == OK) {
result = ::vw_printw(w, fmt, args);
}
return result;
}
void
NCursesWindow::set_keyboard(void)
{

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
# $Id: dist.mk,v 1.618 2007/12/01 16:08:01 tom Exp $
# $Id: dist.mk,v 1.619 2007/12/15 22:01:55 tom Exp $
# Makefile for creating ncurses distributions.
#
# This only needs to be used directly as a makefile by developers, but
@ -37,7 +37,7 @@ SHELL = /bin/sh
# These define the major/minor/patch versions of ncurses.
NCURSES_MAJOR = 5
NCURSES_MINOR = 6
NCURSES_PATCH = 20071201
NCURSES_PATCH = 20071215
# We don't append the patch to the version, since this only applies to releases
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)