libfossil
fsl_dibu_opt::fsl_dibu_opt_ansi Struct Reference

EXPERIMENTAL AND SUBJECT TO CHANGE. More...

#include "util.h"

Collaboration diagram for fsl_dibu_opt::fsl_dibu_opt_ansi:

Data Fields

char const * deletion
 Color escape sequence for inserted lines.
char const * edit
 Color escape sequence for edited or replaced lines.
char const * insertion
 Color escape sequence for inserted lines.
char const * reset
 Escape sequence to reset colors.

Detailed Description

EXPERIMENTAL AND SUBJECT TO CHANGE.

Optional ANSI color control sequences to be injected into text-mode diff output by diff builders which support them. All members of this struct must either be NULL, an empty string, or a valid ANSI escape sequence. The reset option must be the escape sequence to reset either just the color or to reset all ANSI control attributes, depending on how the other members are set. If any member other than reset is set, all must be set.

The diff driver will treat any members of this which are NULL as empty strings to simplify diff builder color integration. The exception is the reset member - see its docs for details.

Definition at line 3973 of file util.h.

Field Documentation

◆ deletion

char const* fsl_dibu_opt::fsl_dibu_opt_ansi::deletion

Color escape sequence for inserted lines.

Definition at line 3987 of file util.h.

◆ edit

char const* fsl_dibu_opt::fsl_dibu_opt_ansi::edit

Color escape sequence for edited or replaced lines.

This option might be ignored, depending on how the renderer works. Some will render edits as a deletion/insertion pair.

Definition at line 3983 of file util.h.

◆ insertion

char const* fsl_dibu_opt::fsl_dibu_opt_ansi::insertion

Color escape sequence for inserted lines.

Definition at line 3977 of file util.h.

◆ reset

char const* fsl_dibu_opt::fsl_dibu_opt_ansi::reset

Escape sequence to reset colors.

If reset is empty or NULL and any others are not then reset is automatically treated as if it were the ANSI code to reset all color attributes.

Definition at line 3993 of file util.h.


The documentation for this struct was generated from the following file: