X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fuser_caps.5;h=032ae7e0651cfdc0c30889586c17ce412dff8f2a;hp=0f20dad1c00538b1adb273bb4a40dc7f1f41143f;hb=cb4427a16794d98049b4d790b810d62217501f9f;hpb=5d8dbcdd9423bf9821db414fd9ec792ccf1f1027 diff --git a/man/user_caps.5 b/man/user_caps.5 index 0f20dad1..032ae7e0 100644 --- a/man/user_caps.5 +++ b/man/user_caps.5 @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright (c) 2017 Free Software Foundation, Inc. * +.\" Copyright (c) 2017,2018 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 * @@ -26,16 +26,16 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: user_caps.5,v 1.2 2017/09/04 19:27:24 tom Exp $ +.\" $Id: user_caps.5,v 1.9 2018/07/28 22:05:23 tom Exp $ .TH user_caps 5 .ie \n(.g .ds `` \(lq .el .ds `` `` .ie \n(.g .ds '' \(rq .el .ds '' '' .de NS -.ie \n(.sp +.ie n .sp .el .sp .5 -.ie \n(.in +4 +.ie n .in +4 .el .in +2 .nf .ft C \" Courier @@ -43,12 +43,13 @@ .de NE .fi .ft R -.in -4 +.ie n .in -4 +.el .in -2 .. .de bP -.IP \(bu 4 +.ie n .IP \(bu 4 +.el .IP \(bu 2 .. -.ds n 5 .SH NAME user_caps \- user-defined terminfo capabilities .SH SYNOPSIS @@ -117,7 +118,8 @@ modifications to the toolset's predefined capability names are needed. .PP The ncurses utilities \fBtic\fP and \fBinfocmp\fP have a command-line option \*(``\-x\*('' to control whether the nonstandard capabilities -are stored or retrieved. A library function \fBuse_extended_names\fP +are stored or retrieved. +A library function \fBuse_extended_names\fP is provided for the same purpose. .PP When compiling a terminal database, if \*(``\-x\*('' is set, @@ -161,7 +163,7 @@ ncurses makes explicit checks for these: .TP 3 AX \fIboolean\fP, asserts that the terminal interprets SGR 39 and SGR 49 -by resetting the foreground and background color, respectively, to the default. +by resetting the foreground and background color, respectively, to the default. .IP This is a feature recognized by the \fBscreen\fP program as well. .TP 3 @@ -175,9 +177,9 @@ The command \*(``\fBtput clear\fP\*('' does the same thing. RGB \fIboolean\fP, \fInumber\fP \fBor\fP \fIstring\fP, to assert that the -\fBset_a_foreground\fP and +\fBset_a_foreground\fP and \fBset_a_background\fP capabilities correspond to \fIdirect colors\fP, -using an RGB (red/green/blue) convention. +using an RGB (red/green/blue) convention. This capability allows the \fBcolor_content\fP function to return appropriate values without requiring the application to initialize colors using \fBinit_color\fP. @@ -203,9 +205,15 @@ blue (and green) lose just as in the \fIboolean\fP case. explicitly list the number of bits used for red, green and blue components as a slash-separated list of decimal integers. .RE +.IP +Because there are several RGB encodings in use, +applications which make assumptions about the number of bits per color +are unlikely to work reliably. +As a trivial case, for example, one could define \fBRGB#1\fP +to represent the standard eight ANSI colors, i.e., one bit per color. .TP 3 U8 -\fIboolean\fP, +\fInumber\fP, asserts that ncurses must use Unicode values for line-drawing characters, and that it should ignore the alternate character set capabilities when the locale uses UTF-8 encoding. @@ -248,7 +256,7 @@ kEND/special form of kend (End) kHOM/special form of khome (Home) kLFT/special form of kcub1 (cursor-left or cursor-back) kNXT/special form of knext (Next, or Page-Down) -kPRV/special form of kprev (Prev, or Page-Up) +kPRV/special form of kprev (Prev, or Page-Up) kRIT/special form of kcuf1 (cursor-right, or cursor-forward) kUP/special form of kcuu1 (cursor-up) .TE