bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH v2 01/18] Set synopses more economically.


From: G. Branden Robinson
Subject: [PATCH v2 01/18] Set synopses more economically.
Date: Sat, 23 Sep 2023 06:55:52 -0500

Bracket synopsis with `nf` and `fi` requests; if one is going to use
*roff requests, it's better to use these than numerous `br` requests.

Use `PP` in favor of `sp`.

* man/curs_color.3x:
* man/curs_getyx.3x:
* man/curs_inopts.3x:
* man/curs_legacy.3x:
* man/curs_memleaks.3x:
* man/curs_mouse.3x:
* man/curs_opaque.3x
* man/curs_pad.3x:
* man/curs_print.3x:
* man/curs_slk.3x:
* man/curs_terminfo.3x:
* man/curs_touch.3x:
* man/curs_util.3x:
* man/define_key.3x:
* man/key_defined.3x:
* man/keybound.3x:
* man/keyok.3x:
* man/new_pair.3x:
* man/resizeterm.3x: Do it.
---
 man/curs_color.3x    | 25 ++++++++-----------------
 man/curs_getyx.3x    |  7 +++----
 man/curs_inopts.3x   | 34 ++++++++++------------------------
 man/curs_legacy.3x   | 16 +++++++---------
 man/curs_memleaks.3x | 11 ++++-------
 man/curs_mouse.3x    | 17 +++++++----------
 man/curs_opaque.3x   | 18 +++---------------
 man/curs_pad.3x      |  9 +++------
 man/curs_print.3x    |  2 +-
 man/curs_slk.3x      | 28 ++++++++--------------------
 man/curs_terminfo.3x | 34 ++++++++++------------------------
 man/curs_touch.3x    | 12 ++++++------
 man/curs_trace.3x    | 21 +++++++--------------
 man/curs_util.3x     | 22 +++++++++-------------
 man/define_key.3x    |  2 +-
 man/key_defined.3x   |  2 +-
 man/keybound.3x      |  2 +-
 man/keyok.3x         |  2 +-
 man/new_pair.3x      |  6 +++---
 man/resizeterm.3x    |  6 +++---
 20 files changed, 96 insertions(+), 180 deletions(-)

diff --git a/man/curs_color.3x b/man/curs_color.3x
index 744ad385..7357fa99 100644
--- a/man/curs_color.3x
+++ b/man/curs_color.3x
@@ -55,41 +55,32 @@ .SH NAME
 \fB\%PAIR_NUMBER\fP \-
 manipulate terminal colors with \fIcurses\fR
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint start_color(void);\fP
-.sp
+.PP
 \fBbool has_colors(void);\fP
-.br
 \fBbool can_change_color(void);\fP
-.sp
+.PP
 \fBint init_pair(short \fIpair\fB, short \fIf\fB, short \fIb\fB);\fR
-.br
 \fBint init_color(short \fIcolor\fB, short \fIr\fB, short \fIg\fB, short 
\fIb\fB);\fR
-.br
 /* extensions */
-.br
 \fBint init_extended_pair(int \fIpair\fB, int \fIf\fB, int \fIb\fB);\fR
-.br
 \fBint init_extended_color(int \fIcolor\fB, int \fIr\fB, int \fIg\fB, int 
\fIb\fB);\fR
-.sp
+.PP
 \fBint color_content(short \fIcolor\fB, short *\fIr\fB, short *\fIg\fB, short 
*\fIb\fB);\fR
-.br
 \fBint pair_content(short \fIpair\fB, short *\fIf\fB, short *\fIb\fB);\fR
-.br
 /* extensions */
-.br
 \fBint extended_color_content(int \fIcolor\fB, int *\fIr\fB, int *\fIg\fB, int 
*\fIb\fB);\fR
-.br
 \fBint extended_pair_content(int \fIpair\fB, int *\fIf\fB, int *\fIb\fB);\fR
-.sp
+.PP
 /* extensions */
-.br
 \fBvoid reset_color_pairs(void);\fP
-.sp
+.PP
 \fBint COLOR_PAIR(int \fIn\fB);\fR
-.br
 \fBPAIR_NUMBER(\fIattrs\fB);\fR
+.fi
 .SH DESCRIPTION
 .SS Overview
 \fBcurses\fP supports color attributes on terminals with that capability.
diff --git a/man/curs_getyx.3x b/man/curs_getyx.3x
index 05bce4f9..ebed93b9 100644
--- a/man/curs_getyx.3x
+++ b/man/curs_getyx.3x
@@ -36,15 +36,14 @@ .SH NAME
 \fB\%getmaxyx\fP \-
 get \fIcurses\fR cursor and window coordinates
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBvoid getyx(WINDOW *\fIwin\fB, int \fIy\fB, int \fIx\fB);\fR
-.br
 \fBvoid getparyx(WINDOW *\fIwin\fB, int \fIy\fB, int \fIx\fB);\fR
-.br
 \fBvoid getbegyx(WINDOW *\fIwin\fB, int \fIy\fB, int \fIx\fB);\fR
-.br
 \fBvoid getmaxyx(WINDOW *\fIwin\fB, int \fIy\fB, int \fIx\fB);\fR
+.fi
 .SH DESCRIPTION
 The \fBgetyx\fP macro places the current cursor position of the given window in
 the two integer variables \fIy\fP and \fIx\fP.
diff --git a/man/curs_inopts.3x b/man/curs_inopts.3x
index 8e9b9863..b96c8103 100644
--- a/man/curs_inopts.3x
+++ b/man/curs_inopts.3x
@@ -60,56 +60,42 @@ .SH NAME
 \fB\%typeahead\fP \-
 get and set \fIcurses\fR terminal input options
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
 .PP
 \fBint cbreak(void);\fP
-.br
 \fBint nocbreak(void);\fP
-.sp
+.PP
 \fBint echo(void);\fP
-.br
 \fBint noecho(void);\fP
-.sp
+.PP
 \fBint intrflush(WINDOW *\fIwin\fB, bool \fIbf\fB);\fR
-.br
 \fBint keypad(WINDOW *\fIwin\fB, bool \fIbf\fB);\fR
-.br
 \fBint meta(WINDOW *\fIwin\fB, bool \fIbf\fB);\fR
-.br
 \fBint nodelay(WINDOW *\fIwin\fB, bool \fIbf\fB);\fR
-.br
 \fBint notimeout(WINDOW *\fIwin\fB, bool \fIbf\fB);\fR
-.sp
+.PP
 \fBint nl(void);\fP
-.br
 \fBint nonl(void);\fP
-.sp
+.PP
 \fBint raw(void);\fP
-.br
 \fBint noraw(void);\fP
-.sp
+.PP
 \fBvoid qiflush(void);\fP
-.br
 \fBvoid noqiflush(void);\fP
-.sp
+.PP
 \fBint halfdelay(int \fItenths\fB);\fR
-.br
 \fBvoid timeout(int \fIdelay\fB);\fR
-.br
 \fBvoid wtimeout(WINDOW *\fIwin\fB, int \fIdelay\fB);\fR
-.sp
+.PP
 \fBint typeahead(int \fIfd\fB);\fR
-.sp
+.PP
 /* extensions */
-.br
 \fBint is_cbreak(void);\fP
-.br
 \fBint is_echo(void);\fP
-.br
 \fBint is_nl(void);\fP
-.br
 \fBint is_raw(void);\fP
-.br
+.nf
 .SH DESCRIPTION
 The \fBncurses\fP library provides several functions which let an application
 change the way input from the terminal is handled.
diff --git a/man/curs_legacy.3x b/man/curs_legacy.3x
index 86c0176f..b36c9bb6 100644
--- a/man/curs_legacy.3x
+++ b/man/curs_legacy.3x
@@ -45,25 +45,23 @@ .SH NAME
 \fB\%getpary\fP \-
 get \fIcurses\fR cursor and window coordinates or attributes (legacy)
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint getattrs(const WINDOW *\fIwin\fB);\fR
-.sp
+.PP
 \fBint getbegx(const WINDOW *\fIwin\fB);\fR
-.br
 \fBint getbegy(const WINDOW *\fIwin\fB);\fR
-.sp
+.PP
 \fBint getcurx(const WINDOW *\fIwin\fB);\fR
-.br
 \fBint getcury(const WINDOW *\fIwin\fB);\fR
-.sp
+.PP
 \fBint getmaxx(const WINDOW *\fIwin\fB);\fR
-.br
 \fBint getmaxy(const WINDOW *\fIwin\fB);\fR
-.sp
+.PP
 \fBint getparx(const WINDOW *\fIwin\fB);\fR
-.br
 \fBint getpary(const WINDOW *\fIwin\fB);\fR
+.fi
 .SH DESCRIPTION
 These legacy functions are simpler to use than the X/Open Curses functions:
 .bP
diff --git a/man/curs_memleaks.3x b/man/curs_memleaks.3x
index c04598a9..5dd0f5c2 100644
--- a/man/curs_memleaks.3x
+++ b/man/curs_memleaks.3x
@@ -42,21 +42,18 @@ .SH NAME
 \fB\%exit_terminfo\fP \-
 check for memory leaks in \fIcurses\fR
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.br
 \fBvoid exit_curses(int \fIcode\fB);\fR
-.sp
+.PP
 \fB#include <term.h>\fP
-.br
 \fBvoid exit_terminfo(int \fIcode\fB);\fR
-.sp
+.PP
 /* deprecated (intentionally not declared in curses.h or term.h) */
-.br
 \fBvoid _nc_freeall(void);\fP
-.br
 \fBvoid _nc_free_and_exit(int \fIcode\fB);\fR
-.br
 \fBvoid _nc_free_tinfo(int \fIcode\fB);\fR
+.fi
 .SH DESCRIPTION
 These functions are used to simplify analysis of memory leaks in the ncurses
 library.
diff --git a/man/curs_mouse.3x b/man/curs_mouse.3x
index 31d128f3..dcbeaf01 100644
--- a/man/curs_mouse.3x
+++ b/man/curs_mouse.3x
@@ -68,35 +68,32 @@ .SH NAME
 \fB\%mouseinterval\fP \-
 get mouse events in \fIcurses\fR
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
 .PP
 \fBtypedef unsigned long mmask_t;\fP
 .PP
-.nf
 \fBtypedef struct {\fP
 \fB    short id;         \fI/* ID to distinguish multiple devices */\fR
 \fB    int x, y, z;      \fI/* event coordinates */\fR
 \fB    mmask_t bstate;   \fI/* button state bits */\fR
 \fB} MEVENT;\fP
-.fi
 .PP
 \fBbool has_mouse(void);\fP
-.sp
+.PP
 \fBint getmouse(MEVENT *\fIevent\fB);\fR
-.br
 \fBint ungetmouse(MEVENT *\fIevent\fB);\fR
-.sp
+.PP
 \fBmmask_t mousemask(mmask_t \fInewmask\fB, mmask_t *\fIoldmask\fB);\fR
-.sp
+.PP
 \fBbool wenclose(const WINDOW *\fIwin\fB, int \fIy\fB, int \fIx\fB);\fR
-.sp
+.PP
 \fBbool mouse_trafo(int* \fIpY\fB, int* \fIpX\fB, bool \fIto_screen\fB);\fR
-.br
 \fBbool wmouse_trafo(const WINDOW* \fIwin\fB,\fR
                   \fBint* \fIpY\fB, int* \fIpX\fB, bool \fIto_screen\fB);\fR
-.sp
+.PP
 \fBint mouseinterval(int \fIerval\fB);\fR
-.br
+.fi
 .SH DESCRIPTION
 These functions provide an interface to mouse events from
 \fBncurses\fP(3X).
diff --git a/man/curs_opaque.3x b/man/curs_opaque.3x
index e7f8561d..bf64a398 100644
--- a/man/curs_opaque.3x
+++ b/man/curs_opaque.3x
@@ -51,37 +51,25 @@ .SH NAME
 \fB\%wgetscrreg\fP \-
 obtain \fIcurses\fR window properties
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBbool is_cleared(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_idcok(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_idlok(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_immedok(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_keypad(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_leaveok(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_nodelay(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_notimeout(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_pad(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_scrollok(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_subwin(const WINDOW *\fIwin\fB);\fR
-.br
 \fBbool is_syncok(const WINDOW *\fIwin\fB);\fR
-.br
 \fBWINDOW * wgetparent(const WINDOW *\fIwin\fB);\fR
-.br
 \fBint wgetdelay(const WINDOW *\fIwin\fB);\fR
-.br
 \fBint wgetscrreg(const WINDOW *\fIwin\fB, int *\fItop\fB, int 
*\fIbottom\fB);\fR
+.fi
 .SH DESCRIPTION
 This implementation provides functions which return properties
 set in the WINDOW structure, allowing it to be \*(``opaque\*('' if
diff --git a/man/curs_pad.3x b/man/curs_pad.3x
index 28dbc7b7..ce802305 100644
--- a/man/curs_pad.3x
+++ b/man/curs_pad.3x
@@ -42,22 +42,19 @@ .SH NAME
 \fB\%pecho_wchar\fP \-
 create and display \fIcurses\fR pads
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBWINDOW *newpad(int \fInlines\fB, int \fIncols\fB);\fR
-.br
 \fBWINDOW *subpad(WINDOW *\fIorig\fB, int \fInlines\fB, int \fIncols\fB,\fR
       \fBint \fIbegin_y\fB, int \fIbegin_x\fB);\fR
-.br
 \fBint prefresh(WINDOW *\fIpad\fB, int \fIpminrow\fB, int \fIpmincol\fB,\fR
       \fBint \fIsminrow\fB, int \fIsmincol\fB, int \fIsmaxrow\fB, int 
\fIsmaxcol\fB);\fR
-.br
 \fBint pnoutrefresh(WINDOW *\fIpad\fB, int \fIpminrow\fB, int \fIpmincol\fB,\fR
       \fBint \fIsminrow\fB, int \fIsmincol\fB, int \fIsmaxrow\fB, int 
\fIsmaxcol\fB);\fR
-.br
 \fBint pechochar(WINDOW *\fIpad\fB, chtype \fIch\fB);\fR
-.br
 \fBint pecho_wchar(WINDOW *\fIpad\fB, const cchar_t *\fIwch\fB);\fR
+.fi
 .SH DESCRIPTION
 .SS newpad
 The \fBnewpad\fP routine creates and returns a pointer to a new pad data
diff --git a/man/curs_print.3x b/man/curs_print.3x
index 3325958e..022cd98b 100644
--- a/man/curs_print.3x
+++ b/man/curs_print.3x
@@ -34,7 +34,7 @@ .SH NAME
 write binary data to printer using \fIterminfo\fR capabilities
 .SH SYNOPSIS
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint mcprint(char *\fIdata\fB, int \fIlen\fB);\fR
 .SH DESCRIPTION
 This function uses the \fBmc5p\fP or \fBmc4\fP and \fBmc5\fP capabilities,
diff --git a/man/curs_slk.3x b/man/curs_slk.3x
index 50b477ac..6e32cd46 100644
--- a/man/curs_slk.3x
+++ b/man/curs_slk.3x
@@ -58,47 +58,35 @@ .SH NAME
 \fB\%extended_slk_color\fP \-
 \fIcurses\fR soft label key routines
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint slk_init(int \fIfmt\fB);\fR
-.sp
+.PP
 \fBint slk_set(int \fIlabnum\fB, const char *\fIlabel\fB, int \fIfmt\fB);\fR
-.br
 \fBint slk_wset(int \fIlabnum\fB, const wchar_t *\fIlabel\fB, int 
\fIfmt\fB);\fR
-.sp
+.PP
 \fBchar *slk_label(int \fIlabnum\fB);\fR
-.sp
+.PP
 \fBint slk_refresh(void);\fP
-.br
 \fBint slk_noutrefresh(void);\fP
-.br
 \fBint slk_clear(void);\fP
-.br
 \fBint slk_restore(void);\fP
-.br
 \fBint slk_touch(void);\fP
-.sp
+.PP
 \fBint slk_attron(const chtype \fIattrs\fB);\fR
-.br
 \fBint slk_attroff(const chtype \fIattrs\fB);\fR
-.br
 \fBint slk_attrset(const chtype \fIattrs\fB);\fR
-.br
 \fBint slk_attr_on(attr_t \fIattrs\fB, void* \fIopts\fB);\fR
-.br
 \fBint slk_attr_off(const attr_t \fIattrs\fB, void * \fIopts\fB);\fR
-.br
 \fBint slk_attr_set(const attr_t \fIattrs\fB, short \fIpair\fB, void* 
\fIopts\fB);\fR
-.br
 /* extension */
-.br
 \fBattr_t slk_attr(void);\fP
-.sp
+.PP
 \fBint slk_color(short \fIpair\fB);\fR
-.br
 /* extension */
-.br
 \fBint extended_slk_color(int \fIpair\fB);\fR
+.fi
 .SH DESCRIPTION
 The slk* functions manipulate the set of soft function-key labels that exist on
 many terminals.
diff --git a/man/curs_terminfo.3x b/man/curs_terminfo.3x
index bd418951..330a47b1 100644
--- a/man/curs_terminfo.3x
+++ b/man/curs_terminfo.3x
@@ -63,9 +63,9 @@ .SH SYNOPSIS
 .nf
 \fB#include <curses.h>\fP
 \fB#include <term.h>\fP
-.sp
+.PP
 \fBTERMINAL *cur_term;\fP
-.sp
+.PP
 \fBconst char * const boolnames[];\fP
 \fBconst char * const boolcodes[];\fP
 \fBconst char * const boolfnames[];\fP
@@ -75,49 +75,35 @@ .SH SYNOPSIS
 \fBconst char * const strnames[];\fP
 \fBconst char * const strcodes[];\fP
 \fBconst char * const strfnames[];\fP
-.sp
+.PP
 \fBint setupterm(const char *\fIterm\fB, int \fIfiledes\fB, int 
*\fIerrret\fB);\fR
-.br
 \fBTERMINAL *set_curterm(TERMINAL *\fInterm\fB);\fR
-.br
 \fBint del_curterm(TERMINAL *\fIoterm\fB);\fR
-.br
 \fBint restartterm(const char *\fIterm\fB, int \fIfiledes\fB, int 
*\fIerrret\fB);\fR
-.sp
+.PP
 \fBchar *tparm(const char *\fIstr\fB, ...);\fR
-.br
        \fIor\fP
-.br
 \fBchar *tparm(const char *\fIstr\fB, long \fIp1 ... \fBlong \fIp9\fB);\fR
-.sp
+.PP
 \fBint tputs(const char *\fIstr\fB, int \fIaffcnt\fB, int 
(*\fIputc\fB)(int));\fR
-.br
 \fBint putp(const char *\fIstr\fB);\fR
-.sp
+.PP
 \fBint vidputs(chtype \fIattrs\fB, int (*\fIputc\fB)(int));\fR
-.br
 \fBint vidattr(chtype \fIattrs\fB);\fR
-.br
 \fBint vid_puts(attr_t \fIattrs\fB, short \fIpair\fB, void *\fIopts\fB, int 
(*\fIputc\fB)(int));\fR
-.br
 \fBint vid_attr(attr_t \fIattrs\fB, short \fIpair\fB, void *\fIopts\fB);\fR
-.sp
+.PP
 \fBint mvcur(int \fIoldrow\fB, int \fIoldcol\fB, int \fInewrow\fR, int 
\fInewcol\fB);\fR
-.sp
+.PP
 \fBint tigetflag(const char *\fIcapname\fB);\fR
-.br
 \fBint tigetnum(const char *\fIcapname\fB);\fR
-.br
 \fBchar *tigetstr(const char *\fIcapname\fB);\fR
-.sp
+.PP
 \fBchar *tiparm(const char *\fIstr\fB, ...);\fR
-.sp
+.PP
 /* extensions */
-.br
 \fBchar *tiparm_s(int \fIexpected\fB, int \fImask\fB, const char *\fIstr\fB, 
...);\fR
-.br
 \fBint tiscan_s(int *\fIexpected\fB, int *\fImask\fB, const char 
*\fIstr\fB);\fR
-.br
 .fi
 .SH DESCRIPTION
 These low-level routines must be called by programs that have to deal
diff --git a/man/curs_touch.3x b/man/curs_touch.3x
index 46270aba..15337c7b 100644
--- a/man/curs_touch.3x
+++ b/man/curs_touch.3x
@@ -38,19 +38,19 @@ .SH NAME
 \fB\%is_wintouched\fP \-
 control terminal output refresh in a \fIcurses\fR window
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint touchline(WINDOW *\fIwin\fB, int \fIstart\fB, int \fIcount\fB);\fR
-.sp
+.PP
 \fBint touchwin(WINDOW *\fIwin\fB);\fR
-.br
 \fBint wtouchln(WINDOW *\fIwin\fB, int \fIy\fB, int \fIn\fB, int 
\fIchanged\fB);\fR
-.sp
+.PP
 \fBint untouchwin(WINDOW *\fIwin\fB);\fR
-.sp
+.PP
 \fBbool is_linetouched(WINDOW *\fIwin\fB, int \fIline\fB);\fR
-.br
 \fBbool is_wintouched(WINDOW *\fIwin\fB);\fR
+.fi
 .SH DESCRIPTION
 The \fBtouchwin\fP and \fBtouchline\fP routines throw away all
 optimization information about which parts of the window have been
diff --git a/man/curs_trace.3x b/man/curs_trace.3x
index add2b6be..d9411619 100644
--- a/man/curs_trace.3x
+++ b/man/curs_trace.3x
@@ -53,35 +53,28 @@ .SH NAME
 \fB\%_tracemouse\fP \-
 \fIcurses\fR debugging routines
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBunsigned curses_trace(const unsigned \fIparam\fB);\fR
-.sp
+.PP
 \fBvoid _tracef(const char *\fIformat\fB, ...);\fR
-.sp
+.PP
 \fBchar *_traceattr(attr_t \fIattr\fB);\fR
-.br
 \fBchar *_traceattr2(int \fIbuffer\fB, chtype \fIch\fB);\fR
-.br
 \fBchar *_tracecchar_t(const cchar_t *\fIstring\fB);\fR
-.br
 \fBchar *_tracecchar_t2(int \fIbuffer\fB, const cchar_t *\fIstring\fB);\fR
-.br
 \fBchar *_tracechar(int \fIch\fB);\fR
-.br
 \fBchar *_tracechtype(chtype \fIch\fB);\fR
-.br
 \fBchar *_tracechtype2(int \fIbuffer\fB, chtype \fIch\fB);\fR
-.sp
+.PP
 \fBvoid _tracedump(const char *\fIlabel\fB, WINDOW *\fIwin\fB);\fR
-.br
 \fBchar *_nc_tracebits(void);\fP
-.br
 \fBchar *_tracemouse(const MEVENT *\fIevent\fB);\fR
-.sp
+.PP
 /* deprecated */
-.br
 \fBvoid trace(const unsigned int \fIparam\fB);\fR
+.fi
 .SH DESCRIPTION
 The \fIcurses trace\fP routines are used for debugging the ncurses libraries,
 as well as applications which use the ncurses libraries.
diff --git a/man/curs_util.3x b/man/curs_util.3x
index 6390749b..2468326e 100644
--- a/man/curs_util.3x
+++ b/man/curs_util.3x
@@ -53,33 +53,29 @@ .SH NAME
 \fB\%wunctrl\fP \-
 miscellaneous \fIcurses\fR utility routines
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBconst char *unctrl(chtype \fIc\fB);\fR
-.br
 \fBwchar_t *wunctrl(cchar_t *\fIc\fB);\fR
-.sp
+.PP
 \fBconst char *keyname(int \fIc\fB);\fR
-.br
 \fBconst char *key_name(wchar_t \fIw\fB);\fR
-.sp
+.PP
 \fBvoid filter(void);\fP
-.sp
+.PP
 \fBvoid use_env(bool \fIf\fB);\fR
-.sp
+.PP
 \fBint putwin(WINDOW *\fIwin\fB, FILE *\fIfilep\fB);\fR
-.br
 \fBWINDOW *getwin(FILE *\fIfilep\fB);\fR
-.sp
+.PP
 \fBint delay_output(int \fIms\fB);\fR
-.br
 \fBint flushinp(void);\fP
-.sp
+.PP
 /* extensions */
-.br
 \fBvoid nofilter(void);\fP
-.br
 \fBvoid use_tioctl(bool \fIf\fB);\fR
+.fi
 .SH DESCRIPTION
 .SS unctrl
 The \fBunctrl\fP routine returns a character string which is a printable
diff --git a/man/define_key.3x b/man/define_key.3x
index d4ac62f4..26c21f28 100644
--- a/man/define_key.3x
+++ b/man/define_key.3x
@@ -36,7 +36,7 @@ .SH NAME
 define a \fIcurses\fR keycode
 .SH SYNOPSIS
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint define_key(const char *\fIdefinition\fB, int \fIkeycode\fB);\fR
 .SH DESCRIPTION
 This is an extension to the curses library.
diff --git a/man/key_defined.3x b/man/key_defined.3x
index 5e140551..72d469fa 100644
--- a/man/key_defined.3x
+++ b/man/key_defined.3x
@@ -36,7 +36,7 @@ .SH NAME
 test whether a \fIcurses\fR keycode is defined
 .SH SYNOPSIS
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint key_defined(const char *\fIdefinition\fB);\fR
 .SH DESCRIPTION
 This is an extension to the curses library.
diff --git a/man/keybound.3x b/man/keybound.3x
index b2dde39c..62fbfce7 100644
--- a/man/keybound.3x
+++ b/man/keybound.3x
@@ -36,7 +36,7 @@ .SH NAME
 get definition of \fIcurses\fR keycode
 .SH SYNOPSIS
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBchar * keybound(int \fIkeycode\fB, int \fIcount);\fR
 .SH DESCRIPTION
 This is an extension to the curses library.
diff --git a/man/keyok.3x b/man/keyok.3x
index 7bc1d911..f3f43f2c 100644
--- a/man/keyok.3x
+++ b/man/keyok.3x
@@ -36,7 +36,7 @@ .SH NAME
 enable or disable a \fIcurses\fR keycode
 .SH SYNOPSIS
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint keyok(int \fIkeycode\fB, bool \fIenable\fB);\fR
 .SH DESCRIPTION
 This is an extension to the curses library.
diff --git a/man/new_pair.3x b/man/new_pair.3x
index 772d09eb..52d7b02b 100644
--- a/man/new_pair.3x
+++ b/man/new_pair.3x
@@ -64,13 +64,13 @@ .SH NAME
 \fB\%free_pair\fP \-
 dynamically allocate \fIcurses\fR color pairs
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBint alloc_pair(int \fIfg\fB, int \fIbg\fB);\fR
-.br
 \fBint find_pair(int \fIfg\fB, int \fIbg\fB);\fR
-.br
 \fBint free_pair(int \fIpair\fB);\fR
+.fi
 .SH DESCRIPTION
 These functions are an extension to the curses library.
 They permit an application to dynamically allocate a color pair using
diff --git a/man/resizeterm.3x b/man/resizeterm.3x
index 73b8d3f0..9b622341 100644
--- a/man/resizeterm.3x
+++ b/man/resizeterm.3x
@@ -41,13 +41,13 @@ .SH NAME
 \fB\%resizeterm\fP \-
 manage the terminal dimensions understood by \fIcurses\fR
 .SH SYNOPSIS
+.nf
 \fB#include <curses.h>\fP
-.sp
+.PP
 \fBbool is_term_resized(int \fIlines\fB, int \fIcolumns\fB);\fR
-.br
 \fBint resize_term(int \fIlines\fB, int \fIcolumns\fB);\fR
-.br
 \fBint resizeterm(int \fIlines\fB, int \fIcolumns\fB);\fR
+.fi
 .SH DESCRIPTION
 This is an extension to the curses library.
 It provides callers with a hook into the \fBncurses\fP data to resize windows,
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]