ELinks 0.20.0
screen_char Struct Reference

One position in the terminal screen's image. More...

#include <draw.h>

Data Structures

union  [union].c

Data Fields

unicode_val_T data
 Contains either character value or frame data.
unsigned char attr
 Attributes are screen_char_attr bits.
union  c
unsigned int is_default_fg_color:1
unsigned int is_default_bg_color:1
unsigned int number

(Note that these are not member symbols.)

#define copy_screen_chars(to, from, amount)

Detailed Description

One position in the terminal screen's image.

◆ copy_screen_chars

#define copy_screen_chars ( to,
from,
amount )
related
Value:
do { memcpy(to, from, (amount) * sizeof(struct screen_char)); } while (0)
One position in the terminal screen's image.
Definition draw.h:44

Field Documentation

◆ attr

unsigned char screen_char::attr

Attributes are screen_char_attr bits.

◆ c

union screen_char::[union].c screen_char::c

◆ data

unicode_val_T screen_char::data

Contains either character value or frame data.

  • If attr includes SCREEN_ATTR_FRAME, then data is enum border_char.
  • Otherwise, if the charset of the terminal is UTF-8, then data is a character value in UCS-4. This is possible only if CONFIG_UTF8 is defined.
  • Otherwise, the charset of the terminal is assumed to be unibyte, and data is a byte in that charset.

◆ is_default_bg_color

unsigned int screen_char::is_default_bg_color

◆ is_default_fg_color

unsigned int screen_char::is_default_fg_color

◆ number

unsigned int screen_char::number

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