summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-06-19 13:17:52 +0000
committerwlemb <wlemb>2002-06-19 13:17:52 +0000
commit97c74b11db54daf736921b3c54a208c160a0816d (patch)
tree4d25817620628ed3e95fa569dc307c836eff8619 /man
parentaf1f970c2345fefc010fa8102a56451fb9e1d3a2 (diff)
downloadgroff-97c74b11db54daf736921b3c54a208c160a0816d.tar.gz
Add a `color' request and a `.color' register to control usage of
colours. * src/roff/troff/input.cc (disable_color_flag): Replaced with... (color_flag): This (which is the inverse). (activate_color): New function. (main, init_input_requests): Updated. * src/roff/troff/troff.h, src/roff/troff/node.cc (troff_output_file::fill_color, troff_output_file::glyph_color): Updated. * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document the changes. Circumvent bug in autoconf 2.53 regarding top_builddir. * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/. * Makefile.in, src/xditview/Imakefile.in, doc/Makefile.in: s/@top_builddir@/@groff_top_builddir@/. * configure: Regenerated (with autoconf 2.53).
Diffstat (limited to 'man')
-rw-r--r--man/groff.man13
-rw-r--r--man/groff_diff.man13
2 files changed, 24 insertions, 2 deletions
diff --git a/man/groff.man b/man/groff.man
index 95ed8bd8..b360dc5e 100644
--- a/man/groff.man
+++ b/man/groff.man
@@ -2,7 +2,7 @@
.ig
groff.man
-Last update: 27 May 2002
+Last update: 18 June 2002
This file is part of groff, the GNU roff type-setting system.
@@ -1317,6 +1317,14 @@ Chop the last character off macro, string, or diversion
Close the
.IR stream .
.
+.REQ .color
+Enable colors.
+.
+.REQ .color N
+If
+.I N
+is zero disable colors, otherwise enable them.
+.
.REQ .continue
Finish the current iteration of a while loop.
.
@@ -2967,6 +2975,9 @@ request.
The height of the last character added to the current environment.
It is positive if the character extends above the baseline.
.
+.REG .color
+1\~if colors are enabled, 0\~otherwise.
+.
.REG .csk
The skew of the last character added to the current environment.
The skew of a character is how far to the right of the center of a character
diff --git a/man/groff_diff.man b/man/groff_diff.man
index 07a8d951..05ff6d2b 100644
--- a/man/groff_diff.man
+++ b/man/groff_diff.man
@@ -3,7 +3,7 @@
.ig
groff_diff.man
-Last update : 27 May 2002
+Last update : 18 June 2002
This file is part of groff, the GNU roff type-setting system.
It is the source of the man-page groff_diff(7).
@@ -1134,6 +1134,13 @@ and
requests.
.
.TP
+.BI .color\ n
+If
+.I n
+is non-zero or missing, enable colors (this is the default), otherwise
+disable them.
+.
+.TP
.BI .cp\ n
If
.I n
@@ -2463,6 +2470,10 @@ The height of the last character added to the current environment.
It is positive if the character extends above the baseline.
.
.TP
+.B \[rs]n[.color]
+1\~if colors are enabled, 0\~otherwise.
+.
+.TP
.B \[rs]n[.csk]
The skew of the last character added to the current environment.
.