attribute

attribute — Attribute to decorate text

Types and Values

Description

Functions

Types and Values

enum FepAttrType

Members

FEP_ATTR_TYPE_UNDERLINE

Decorate with underline

 

FEP_ATTR_TYPE_FOREGROUND

Foreground color

 

FEP_ATTR_TYPE_BACKGROUND

Background color

 

FEP_ATTR_TYPE_NONE

No attribute

 

FEP_ATTR_TYPE_STANDOUT

Reverse video

 

FEP_ATTR_TYPE_BOLD

Bold

 

FEP_ATTR_TYPE_BLINK

Blink

 

FepAttribute

typedef struct {
  FepAttrType type;
  unsigned int value;
  unsigned int start_index;
  unsigned int end_index;
} FepAttribute;

Members

FepAttrType type;

type of the attribute

 

unsigned int value;

value of the attribute

 

unsigned int start_index;

starting position of the attribute

 

unsigned int end_index;

end position (exclusive) of the attribute