ELinks 0.16.1.1
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

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

◆ [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: