ELinks 0.18.0
screen_char Struct Reference

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

#include <draw.h>

Data Fields

unicode_val_T data
 Contains either character value or frame data.
 
unsigned char attr
 Attributes are screen_char_attr bits.
 
union { 
 
   unsigned char   color [SCREEN_COLOR_SIZE
 The fore- and background color. More...
 
   unsigned int   node_number 
 
c 
 

Related Symbols

(Note that these are not member symbols.)

#define copy_screen_chars(to, from, amount)    do { memcpy(to, from, (amount) * sizeof(struct screen_char)); } while (0)
 

Detailed Description

One position in the terminal screen's image.

Friends And Related Symbol Documentation

◆ copy_screen_chars

#define copy_screen_chars ( to,
from,
amount )    do { memcpy(to, from, (amount) * sizeof(struct screen_char)); } while (0)
related

Field Documentation

◆ attr

unsigned char screen_char::attr

Attributes are screen_char_attr bits.

◆ [union]

union { ... } screen_char::c

◆ color

unsigned char screen_char::color[SCREEN_COLOR_SIZE]

The fore- and background color.

◆ 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.

◆ node_number

unsigned int screen_char::node_number

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