[Top][All Lists]

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

[Groff-commit] Changes to //var/cvs/groff

From: wlemb
Subject: [Groff-commit] Changes to //var/cvs/groff
Date: 7 Feb 2002 08:36:55 -0000

Log from commit: 

Update of /var/cvs/groff/src/roff/troff
In directory genba:/vol5/tmp/cvs-serv26256/src/roff/troff

Modified Files: 
Log Message:

Adding options -C (compatibility mode) and -c (grotty's old output
scheme) to nroff.

* src/roff/nroff/ Implement it.
Remove `-Wall'.
* NEWS, src/roff/nroff/ 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/ (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.
(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/ 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/ Implement it.
* src/libs/libdriver/ (parse_D_command, do_file): Add
call to `pr->change_color'.

* src/roff/troff/ (troff_output_file::fill_color,
troff_output_file::glyph_color): Call `do_motion'.

* tmac/tty.tmac: Add color definitions.

* src/roff/groff/ Minor fixes.

reply via email to

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