Skip to content

Commit

Permalink
ncurses 5.9 - patch 20130622
Browse files Browse the repository at this point in the history
+ modify the clear program to take into account the E3 extended
  capability to clear the terminal's scrollback buffer (patch by
  Miroslav Lichvar, Redhat #815790).
+ clarify in resizeterm manpage that LINES and COLS are updated.
+ updated ansi example in terminfo.tail, correct misordered example
  of sgr.
+ fix other doclifter warnings for manpages
+ remove unnecessary ".ta" in terminfo.tail, add missing ".fi"
  (patch by Eric Raymond).
  • Loading branch information
ThomasDickey committed Jun 22, 2013
1 parent a7de4c9 commit d3aaa2f
Show file tree
Hide file tree
Showing 16 changed files with 108 additions and 76 deletions.
13 changes: 12 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
-- $Id: NEWS,v 1.2072 2013/06/15 21:16:04 tom Exp $
-- $Id: NEWS,v 1.2075 2013/06/22 22:23:47 tom Exp $
-------------------------------------------------------------------------------

This is a log of changes that ncurses has gone through since Zeyd started
Expand All @@ -45,6 +45,17 @@ 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.

20130622
+ modify the clear program to take into account the E3 extended
capability to clear the terminal's scrollback buffer (patch by
Miroslav Lichvar, Redhat #815790).
+ clarify in resizeterm manpage that LINES and COLS are updated.
+ updated ansi example in terminfo.tail, correct misordered example
of sgr.
+ fix other doclifter warnings for manpages
+ remove unnecessary ".ta" in terminfo.tail, add missing ".fi"
(patch by Eric Raymond).

20130615
+ minor changes to some configure macros to make them more reusable.
+ fixes for tabs program (prompted by report by Nick Andrik):
Expand Down
4 changes: 2 additions & 2 deletions dist.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
# $Id: dist.mk,v 1.933 2013/06/15 21:17:44 tom Exp $
# $Id: dist.mk,v 1.934 2013/06/22 14:41:51 tom Exp $
# Makefile for creating ncurses distributions.
#
# This only needs to be used directly as a makefile by developers, but
Expand All @@ -37,7 +37,7 @@ SHELL = /bin/sh
# These define the major/minor/patch versions of ncurses.
NCURSES_MAJOR = 5
NCURSES_MINOR = 9
NCURSES_PATCH = 20130615
NCURSES_PATCH = 20130622

# We don't append the patch to the version, since this only applies to releases
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
Expand Down
4 changes: 2 additions & 2 deletions form/frm_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "form.priv.h"

MODULE_ID("$Id: frm_driver.c,v 1.103 2013/03/09 22:48:47 tom Exp $")
MODULE_ID("$Id: frm_driver.c,v 1.104 2013/06/22 20:02:55 tom Exp $")

/*----------------------------------------------------------------------------
This is the core module of the form library. It contains the majority
Expand Down Expand Up @@ -4534,7 +4534,7 @@ field_buffer(const FIELD *field, int buffer)

init_mb(state);
next = _nc_wcrtomb(0, data[n].chars[0], &state);
if (!isEILSEQ(next))
if (next > 0)
need += next;
}
}
Expand Down
11 changes: 6 additions & 5 deletions man/clear.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\"***************************************************************************
.\" Copyright (c) 1998-2006,2010 Free Software Foundation, Inc. *
.\" Copyright (c) 1998-2010,2013 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
Expand All @@ -26,7 +26,7 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" $Id: clear.1,v 1.8 2010/12/04 18:36:44 tom Exp $
.\" $Id: clear.1,v 1.10 2013/06/22 22:22:11 tom Exp $
.TH @CLEAR@ 1 ""
.ds n 5
.SH NAME
Expand All @@ -35,9 +35,10 @@
\fB@CLEAR@\fR
.br
.SH DESCRIPTION
\fB@CLEAR@\fR clears your screen if this is possible. It looks in the
environment for the terminal type and then in the \fBterminfo\fR database to
figure out how to clear the screen.
\fB@CLEAR@\fR clears your screen if this is possible,
including its scrollback buffer (if the extended "E3" capability is defined).
\fB@CLEAR@\fR looks in the environment for the terminal type and then in the
\fBterminfo\fR database to determine how to clear the screen.
.PP
\fB@CLEAR@\fR ignores any command-line parameters that may be present.
.SH SEE ALSO
Expand Down
24 changes: 11 additions & 13 deletions man/curs_mouse.3x
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'\" t
.\"***************************************************************************
.\" Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. *
.\" Copyright (c) 1998-2010,2013 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
Expand All @@ -27,7 +27,7 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" $Id: curs_mouse.3x,v 1.38 2010/12/04 18:38:55 tom Exp $
.\" $Id: curs_mouse.3x,v 1.39 2013/06/22 18:09:42 tom Exp $
.TH curs_mouse 3X ""
.na
.hy 0
Expand All @@ -40,20 +40,18 @@
.ad
.hy
.SH SYNOPSIS
.nf
\fB#include <curses.h>
\fB#include <curses.h>\fR
.PP
\fBtypedef unsigned long mmask_t;
\fBtypedef unsigned long mmask_t;\fR
.PP
typedef struct
{
short id; \fI/* ID to distinguish multiple devices */\fB
int x, y, z; \fI/* event coordinates */\fB
mmask_t bstate; \fI/* button state bits */\fB
}
MEVENT;\fR
.nf
\fBtypedef struct {\fR
\fB short id; \fR\fI/* ID to distinguish multiple devices */\fR
\fB int x, y, z; \fR\fI/* event coordinates */\fR
\fB mmask_t bstate; \fR\fI/* button state bits */\fR
\fB} MEVENT;\fR
.fi
.br
.PP
\fBbool has_mouse(void);\fR
.br
\fBint getmouse(MEVENT *event);\fR
Expand Down
6 changes: 3 additions & 3 deletions man/curs_sp_funcs.3x
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\"***************************************************************************
.\" Copyright (c) 2010 Free Software Foundation, Inc. *
.\" Copyright (c) 2010,2013 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
Expand All @@ -26,7 +26,7 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" $Id: curs_sp_funcs.3x,v 1.5 2010/12/04 18:38:55 tom Exp $
.\" $Id: curs_sp_funcs.3x,v 1.6 2013/06/22 17:53:59 tom Exp $
.TH curs_sp_funcs 3X ""
.na
.hy 0
Expand Down Expand Up @@ -186,7 +186,7 @@ new_prescr \- \fBcurses\fR screen-pointer extension
.br
\fBint slk_attrset_sp(SCREEN*, const chtype);\fR
.br
\fBint slk_attr_sp((SCREEN*);\fR
\fBint slk_attr_sp(SCREEN*);\fR
.br
\fBint slk_clear_sp(SCREEN*);\fR
.br
Expand Down
7 changes: 4 additions & 3 deletions man/curs_variables.3x
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\"***************************************************************************
.\" Copyright (c) 2010 Free Software Foundation, Inc. *
.\" Copyright (c) 2010,2013 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
Expand All @@ -26,7 +26,7 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" $Id: curs_variables.3x,v 1.4 2010/12/04 18:38:55 tom Exp $
.\" $Id: curs_variables.3x,v 1.5 2013/06/22 20:39:35 tom Exp $
.TH curs_variables 3X ""
.de bP
.IP \(bu 4
Expand Down Expand Up @@ -74,7 +74,7 @@ This page summarizes variables provided by the \fBcurses\fP library.
A more complete description is given in the \fBcurses\fP(3X) manual page.
.PP
Depending on the configuration, these may be actual variables,
or macros (see \fBcurs_threads\fR(3X))
or macros (see \fBcurs_threads\fR(3X) and \fBcurs_opaque\fR(3X))
which provide read-only access to \fIcurses\fP's state.
In either case, applications should treat them as read-only to avoid
confusing the library.
Expand Down Expand Up @@ -129,6 +129,7 @@ ESCDELAY and TABSIZE are extensions,
not provided in most other implementations of curses.
.SH SEE ALSO
\fBcurses\fR(3X),
\fBcurs_opaque\fR(3X),
\fBcurs_threads\fR(3X),
\fBterm_variables\fR(3X),
\fBterminfo\fR(3X),
Expand Down
6 changes: 2 additions & 4 deletions man/form_variables.3x
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\"***************************************************************************
.\" Copyright (c) 2010 Free Software Foundation, Inc. *
.\" Copyright (c) 2010,2013 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
Expand All @@ -26,7 +26,7 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" $Id: form_variables.3x,v 1.3 2010/12/04 18:38:55 tom Exp $
.\" $Id: form_variables.3x,v 1.4 2013/06/22 17:58:32 tom Exp $
.TH form_variables 3X ""
.ds n 5
.na
Expand All @@ -45,7 +45,6 @@
.SH SYNOPSIS
.nf
\fB#include <form.h>\fR
.br
.PP
\fBFIELDTYPE * TYPE_ALNUM;\fR
\fBFIELDTYPE * TYPE_ALPHA;\fR
Expand All @@ -54,7 +53,6 @@
\fBFIELDTYPE * TYPE_IPV4;\fR
\fBFIELDTYPE * TYPE_NUMERIC;\fR
\fBFIELDTYPE * TYPE_REGEXP;\fR
.br
.fi
.SH DESCRIPTION
These are building blocks for the form library,
Expand Down
14 changes: 8 additions & 6 deletions man/resizeterm.3x
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\"***************************************************************************
.\" Copyright (c) 1998-2010,2012 Free Software Foundation, Inc. *
.\" Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
Expand All @@ -26,9 +26,9 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" Author: Thomas E. Dickey 1996-2005
.\" Author: Thomas E. Dickey 1996-on
.\"
.\" $Id: resizeterm.3x,v 1.15 2012/07/07 18:38:21 tom Exp $
.\" $Id: resizeterm.3x,v 1.17 2013/06/22 20:41:54 tom Exp $
.TH resizeterm 3X ""
.SH NAME
\fBis_term_resized\fR,
Expand All @@ -48,7 +48,8 @@ It provides callers with a hook into the \fBncurses\fR data to resize windows,
primarily for use by programs running in an X Window terminal (e.g., xterm).
The function \fBresizeterm\fR resizes the standard and current windows
to the specified dimensions, and adjusts other bookkeeping data used by
the \fBncurses\fR library that record the window dimensions.
the \fBncurses\fR library that record the window dimensions
such as the \fBLINES\fP and \fBCOLS\fP variables.
.LP
Most of the work is done by the inner function \fBresize_term\fR.
The outer function \fBresizeterm\fR adds bookkeeping for the SIGWINCH handler.
Expand All @@ -64,7 +65,7 @@ A support function \fBis_term_resized\fR is provided so that applications
can check if the \fBresize_term\fR function would modify the window structures.
It returns TRUE if the windows would be modified, and FALSE otherwise.
.SH RETURN VALUE
Except as notes, these function return
Except as noted, these functions return
the integer \fBERR\fR upon failure and \fBOK\fR on success.
They will fail if either of the dimensions are less than or equal to zero,
or if an error occurs while (re)allocating memory for the windows.
Expand All @@ -75,7 +76,7 @@ context where \fBmalloc\fR or \fBrealloc\fR may have been interrupted,
since it uses those functions.
.PP
If ncurses is configured to supply its own SIGWINCH handler,
the \fBresizeterm\fR function ungetch's a \fBKEY_RESIZE\fR which
the \fBresizeterm\fR function \fBungetch\fP's a \fBKEY_RESIZE\fR which
will be read on the next call to \fBgetch\fR.
This is used to alert an application that the screen size has changed,
and that it should repaint special features such as pads that cannot
Expand All @@ -87,6 +88,7 @@ the operating system.
Thus, even if a SIGWINCH is received,
no screen size change may be recorded.
.SH SEE ALSO
\fBcurs_getch\fR(3X),
\fBcurs_variables\fR(3X),
\fBwresize\fR(3X).
.SH AUTHOR
Expand Down
3 changes: 1 addition & 2 deletions man/tabs.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
.\" authorization. *
.\"***************************************************************************
.\"
.\" $Id: tabs.1,v 1.10 2013/06/11 00:56:40 tom Exp $
.\" $Id: tabs.1,v 1.11 2013/06/22 18:11:57 tom Exp $
.TH @TABS@ 1 ""
.ds n 5
.SH NAME
\fB@TABS@\fR \- set tabs on a terminal
.SH SYNOPSIS
\fB@TABS@\fR [\fIoptions\fR]] \fI[tabstop-list]\fR
.br
.SH DESCRIPTION
.PP
The \fB@TABS@\fP program clears and sets tab-stops on the terminal.
Expand Down
Loading

0 comments on commit d3aaa2f

Please sign in to comment.