[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 24/34] man/curs_attr.3x: Set synopsis more economically.
From: |
G. Branden Robinson |
Subject: |
[PATCH 24/34] man/curs_attr.3x: Set synopsis more economically. |
Date: |
Fri, 6 Oct 2023 00:17:20 -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.
Favor `PP` macro call over `sp` request.
---
man/curs_attr.3x | 32 ++++++++------------------------
1 file changed, 8 insertions(+), 24 deletions(-)
diff --git a/man/curs_attr.3x b/man/curs_attr.3x
index 765cb990..5415afdc 100644
--- a/man/curs_attr.3x
+++ b/man/curs_attr.3x
@@ -68,58 +68,42 @@ .SH NAME
manipulate attributes of character cells in \fIcurses\fR windows
.\" ---------------------------------------------------------------------------
.SH SYNOPSIS
+.nf
\fB#include <curses.h>\fP
-.sp
+.PP
\fBint attr_get(attr_t *\fIattrs\fB, short *\fIpair\fB, void *\fIopts\fB);\fR
-.br
\fBint wattr_get(WINDOW *\fIwin\fB, attr_t *\fIattrs\fB, short *\fIpair\fB,\fR
\fBvoid *\fIopts\fB);\fR
-.br
\fBint attr_set(attr_t \fIattrs\fB, short \fIpair\fB, void *\fIopts\fB);\fR
-.br
\fBint wattr_set(WINDOW *\fIwin\fB, attr_t \fIattrs\fB, short \fIpair\fB, void
*\fIopts\fB);\fR
-.sp
+.PP
\fBint attr_off(attr_t \fIattrs\fB, void *\fIopts\fB);\fR
-.br
\fBint wattr_off(WINDOW *\fIwin\fB, attr_t \fIattrs\fB, void *\fIopts\fB);\fR
-.br
\fBint attr_on(attr_t \fIattrs\fB, void *\fIopts\fB);\fR
-.br
\fBint wattr_on(WINDOW *\fIwin\fB, attr_t \fIattrs\fB, void *\fIopts\fB);\fR
-.sp
+.PP
\fBint attroff(int \fIattrs);\fR
-.br
\fBint wattroff(WINDOW *\fIwin\fB, int \fIattrs\fB);\fR
-.br
\fBint attron(int \fIattrs\fB);\fR
-.br
\fBint wattron(WINDOW *\fIwin\fB, int \fIattrs\fB);\fR
-.br
\fBint attrset(int \fIattrs\fB);\fR
-.br
\fBint wattrset(WINDOW *\fIwin\fB, int \fIattrs\fB);\fR
-.sp
+.PP
\fBint chgat(int \fIn\fB, attr_t \fIattr\fB, short \fIpair\fB,\fR \fBconst
void *\fIopts\fB);\fR
-.br
\fBint wchgat(WINDOW *\fIwin\fB,\fR
\fBint \fIn\fB, attr_t \fIattr\fB,\fR \fBshort \fIpair\fB, const void
*\fIopts\fB);\fR
-.br
\fBint mvchgat(int \fIy\fB, int \fIx\fB,\fR
\fBint \fIn\fB, attr_t \fIattr\fB,\fR \fBshort \fIpair\fB, const void
*\fIopts\fB);\fR
-.br
\fBint mvwchgat(WINDOW *\fIwin, int \fIy, int \fIx\fB,\fR
\fBint \fIn,\fR \fBattr_t \fIattr\fB, short \fIpair\fB, const void
*\fIopts\fB);\fR
-.sp
+.PP
\fBint color_set(short \fIpair\fB, void* \fIopts\fB);\fR
-.br
\fBint wcolor_set(WINDOW *\fIwin\fB, short \fIpair\fB,\fR \fBvoid* \fIopts);\fR
-.sp
+.PP
\fBint standend(void);\fP
-.br
\fBint wstandend(WINDOW *\fIwin\fB);\fR
-.br
\fBint standout(void);\fP
-.br
\fBint wstandout(WINDOW *\fIwin\fB);\fR
+.fi
.\" ---------------------------------------------------------------------------
.SH DESCRIPTION
These routines manipulate the current attributes of the named window,
--
2.30.2
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 24/34] man/curs_attr.3x: Set synopsis more economically.,
G. Branden Robinson <=