summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-02-07 08:36:51 +0000
committerwlemb <wlemb>2002-02-07 08:36:51 +0000
commitd0c923a77924549197bdc0721443d2234e147708 (patch)
tree7b1f728472c615aca71a84cef2ac4f55c3cef4ed /NEWS
parent667abc70b96432fdeb64dd899a85b5d4ccd24e13 (diff)
downloadgroff-d0c923a77924549197bdc0721443d2234e147708.tar.gz
Adding options -C (compatibility mode) and -c (grotty's old output
scheme) to nroff. * src/roff/nroff/nroff.sh: Implement it. Remove `-Wall'. * NEWS, src/roff/nroff/nroff.man: Updated. Implementing color support in grotty. The new switch -c activates the old drawing scheme, disabling color at the same time. The new switch `-i' selects italic instead of underlining (SGR only). * src/devices/grotty/tty.cc (putstring): New define instead of `fputs'. Updated all callers. (old_drawing_scheme): New global variable. (COLOR_CHANGE): New enum value. (SGR_*): New defines containing color handling escape sequences. (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines. (glyph): New members `back_color_idx' and `fore_color_idx'. (glyph::order): Add COLOR_CHANGE. (tty_printer): New members `cur_fore_idx', `curr_back_idx', `is_underline', `is_bold', `cu_flag', `tty_colors'. New methods `make_underline', `make_bold', `color_to_idx', `change_color', `put_color'. (cu_flag): Moved into `tty_printer' class. (tty_printer::tty_printer): Initialize colors. (tty_printer::add_char, tty_printer::set_char, tty_printer::special, tty_printer::draw, tty_printer::end_page): Handle colors also. (main): Add options `-c' and `-i'. (usage): Updated. * NEWS, src/devices/grotty/grotty.man: Updated. * src/include/errarg.h (errarg): Add support for `unsigned int'. * src/libs/libgroff/errarg.c: Implement it. * src/include/printer.h (printer): Add `change_color' method (currently used by grotty only). * src/libs/libdriver/printer.cc: Implement it. * src/libs/libdriver/input.cc (parse_D_command, do_file): Add call to `pr->change_color'. * src/roff/troff/node.cc (troff_output_file::fill_color, troff_output_file::glyph_color): Call `do_motion'. * tmac/tty.tmac: Add color definitions. * src/roff/groff/groff.man: Minor fixes.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS50
1 files changed, 42 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index 0994deac..3626bf1e 100644
--- a/NEWS
+++ b/NEWS
@@ -7,14 +7,14 @@ VERSION 1.18
Troff
-----
-o Color support has been added to troff and pic (and to two device drivers,
- grops and grohtml -- other preprocessors and drivers will follow). A new
- function `defcolor' defines colors; the escape sequence `\m' sets the
- drawing color, the escape sequence `\M' specifies the background color for
- closed objects created with \D'...' commands. Similar to fonts, `\mP' and
- `\MP' switch back to the previous color. `\m' and `\M' correspond to the
- new troff output commands `m' and `DF'. The device-specific default color
- is called `default' and can't be redefined.
+o Color support has been added to troff and pic (and to the device drivers
+ grops, grotty, and grohtml -- other preprocessors and drivers will
+ follow). A new function `defcolor' defines colors; the escape sequence
+ `\m' sets the drawing color, the escape sequence `\M' specifies the
+ background color for closed objects created with \D'...' commands.
+ Similar to fonts, `\mP' and `\MP' switch back to the previous color. `\m'
+ and `\M' correspond to the new troff output commands `m' and `DF'. The
+ device-specific default color is called `default' and can't be redefined.
Outputting color can be disabled in troff and groff with the option -c
(it is always disabled in compatibility mode).
@@ -100,6 +100,13 @@ Groff
o The new command line option `-c' disables color output (which is always
disabled in compatibility mode).
+Nroff
+-----
+
+o Two new command line options `-c' and `-C'; the former passes `-c' to
+ grotty (switching to the old output scheme); the latter passes `-C' to
+ groff (enabling compatibility mode).
+
Pic
---
@@ -132,6 +139,33 @@ Grops
o Color support has been added.
+
+Grotty
+------
+
+o Color support has been added, using the SGR (ISO 6429, sometimes called
+ ANSI color) escape sequences.
+
+o SGR escape sequences are now used by default for underlining and bold
+ printing also, no longer using the backspace character trick. To revert
+ to the old behaviour, use the `-c' switch.
+
+ Note that you have to use the `-R' option of `less' to make SGR escapes
+ display correctly. On the other hand, terminal programs and consoles like
+ `xterm' which support SGR sequences natively can directly display the
+ output of grotty. Consequently, the options `-b', `-B', `-u', and `-U'
+ work only in combination with `-c' and are ignored silently otherwise.
+
+ For the `man' program, it may be necessary to add the `-R' option of
+ `less' to the $PAGER environment variable; alternatively, you can use
+ `man's `-P' option (or adapt its configuration file accordingly). See
+ man(1) for more details.
+
+o If the new option `-i' is used (only in SGR mode), grotty sends escape
+ sequences to set the italic font attribute instead of the underline
+ attribute for italic fonts. Note that many terminals don't have support
+ for this (including xterm).
+
Grohtml
-------