bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH v2 16/18] man/curs_terminfo.3x: Fix markup nit.


From: G. Branden Robinson
Subject: [PATCH v2 16/18] man/curs_terminfo.3x: Fix markup nit.
Date: Sat, 23 Sep 2023 06:59:44 -0500

Achieve an indented output line with vertical space before and after
using man(7) macros instead of low-level requests and a (valid)
formatter trick that is poorly understood by many man page writers.
---
 man/curs_terminfo.3x | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/man/curs_terminfo.3x b/man/curs_terminfo.3x
index 6f2da7a5..0e1c4bf1 100644
--- a/man/curs_terminfo.3x
+++ b/man/curs_terminfo.3x
@@ -207,28 +207,28 @@ .SS Initialization
 .B 1
 means that the terminal is hardcopy, cannot be used for \fIcurses\fP 
applications.
 .IP
-\fBsetupterm\fP determines if the entry is a hardcopy type by
-checking the \fBhc\fP (\fBhardcopy\fP) capability.
+\fB\%setupterm\fP determines if the entry is a hardcopy type by
+checking the \fBhc\fP (\fB\%hardcopy\fP) capability.
 .TP 5
 .B 0
 means that the terminal could not be found,
 or that it is a generic type,
 having too little information for \fIcurses\fP applications to run.
 .IP
-\fBsetupterm\fP determines if the entry is a generic type by
-checking the \fBgn\fP (\fBgeneric_type\fP) capability.
+\fB\%setupterm\fP determines if the entry is a generic type by
+checking the \fBgn\fP (\fB\%generic_type\fP) capability.
 .TP 5
 .B \-1
 means that the \fIterminfo\fP database could not be found.
 .RE
 .IP
 If \fIerrret\fP is
-null, \fBsetupterm\fP prints an error message upon finding an error
+null, \fB\%setupterm\fP prints an error message upon finding an error
 and exits.
 Thus, the simplest call is:
-.sp
-      \fBsetupterm((char *)0, 1, (int *)0);\fP,
-.sp
+.IP
+\fBsetupterm((char *)0, 1, (int *)0);\fP,
+.PP
 which uses all the defaults and sends the output to \fB\%stdout\fP.
 .RE
 .\" ***************************************************************************
@@ -428,9 +428,9 @@ .SS Releasing Memory
 description.
 As a side-effect, it sets \fB\%cur_term\fP to point to this memory.
 If an application calls
-.sp
-        \fBdel_curterm(cur_term);\fP
-.sp
+.IP
+\fBdel_curterm(cur_term);\fP
+.PP
 the memory will be freed.
 .PP
 The formatting functions \fB\%tparm\fP and \fB\%tiparm\fP extend the storage
@@ -506,10 +506,10 @@ .SS Compatibility macros
 but except for \fB\%setterm\fP, are likewise macros.
 The one function, \fB\%setterm\fP, is mentioned in the manual page.
 The manual page notes that the \fB\%setterm\fP routine
-was replaced by \fB\%setupterm\fP, stating that the call:
-.sp
-      \fBsetupterm(\fIterm\fB, 1, (int *)0)\fR
-.sp
+was replaced by \fB\%setupterm\fP, stating that the call
+.IP
+\fBsetupterm(\fIterm\fB, 1, (int *)0)\fR
+.PP
 provides the same functionality as \fB\%setterm(\fIterm\fB)\fR,
 and is not recommended for new programs.
 This implementation provides each of those symbols
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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