[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/32] Relocate material.
From: |
G. Branden Robinson |
Subject: |
[PATCH 03/32] Relocate material. |
Date: |
Sat, 11 May 2024 08:27:43 -0500 |
* man/curs_attr.3x: Advise user how to destructure a chtype here...
* man/curs_inch.3x: ...not here. Cross reference the foregoing page.
---
man/curs_attr.3x | 10 ++++++++++
man/curs_inch.3x | 21 +++++----------------
2 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/man/curs_attr.3x b/man/curs_attr.3x
index 37774602b..45e5d067e 100644
--- a/man/curs_attr.3x
+++ b/man/curs_attr.3x
@@ -271,6 +271,16 @@ .SS "Video Attributes"
.TE
.RE
.PP
+You can thus use
+.B \%A_CHARTEXT
+to extract the character from a
+.IR chtype ","
+.B \%A_ATTRIBUTES
+to obtain its rendering attributes,
+and
+.B \%A_COLOR
+to find the color pair it uses.
+.PP
These video attributes are supported by \fBattr_on\fP and related functions
(which also support the attributes recognized by \fBattron\fP, etc.):
.PP
diff --git a/man/curs_inch.3x b/man/curs_inch.3x
index 962e9dc86..82a228e10 100644
--- a/man/curs_inch.3x
+++ b/man/curs_inch.3x
@@ -66,22 +66,11 @@ .SH DESCRIPTION
position in the named window.
If any attributes are set for that position,
their values are OR'ed into the value returned.
-Constants defined in
-\fB<curses.h>\fP can be used with the \fB&\fP (logical AND) operator to
-extract the character or attributes alone.
-.
-.SS Attributes
-The following bit masks may be AND-ed with characters returned by \fBwinch\fP.
-.PP
-.TS
-Lb Lb
-Lb Lx.
-Name Description
-_
-A_CHARTEXT Extract character
-A_ATTRIBUTES Extract attributes
-A_COLOR Extract color pair information
-.TE
+Subsection \*(``Video Attributes\*('' of \fB\%attron\fP(3X) describes
+how to extract character,
+rendering attribute,
+and color pair information from a
+.I chtype "."
.SH RETURN VALUE
Functions prefixed with \*(``mv\*('' first perform cursor movement and
fail if the position
--
2.30.2
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 03/32] Relocate material.,
G. Branden Robinson <=