ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
terminal_screen_config_t Struct Reference

Configuration for terminal screen rendering. More...

#include <include/ascii-chat/tui/terminal_screen.h>

Data Fields

ui_screen_t screen
int output_fd
size_t user_data_size
int minimum_cols
int fixed_header_lines
 How many lines the header takes (e.g., 4 for status, 8 for splash).
terminal_screen_header_fn render_header
 Callback to draw header content.
void * user_data
 Passed to render_header callback.
bool hide_cursor
 Hide cursor while this screen owns the terminal.
bool show_logs
 Whether to show log feed below header.

Detailed Description

Configuration for terminal screen rendering.

Definition at line 45 of file terminal_screen.h.

Field Documentation

◆ fixed_header_lines

int terminal_screen_config_t::fixed_header_lines

How many lines the header takes (e.g., 4 for status, 8 for splash).

Definition at line 50 of file terminal_screen.h.

Referenced by terminal_screen_compose(), and terminal_screen_render().

◆ hide_cursor

bool terminal_screen_config_t::hide_cursor

Hide cursor while this screen owns the terminal.

Definition at line 53 of file terminal_screen.h.

Referenced by terminal_screen_compose().

◆ minimum_cols

int terminal_screen_config_t::minimum_cols

Definition at line 49 of file terminal_screen.h.

Referenced by terminal_screen_render().

◆ output_fd

int terminal_screen_config_t::output_fd

Definition at line 47 of file terminal_screen.h.

Referenced by terminal_screen_render().

◆ render_header

terminal_screen_header_fn terminal_screen_config_t::render_header

Callback to draw header content.

Definition at line 51 of file terminal_screen.h.

Referenced by terminal_screen_compose(), and terminal_screen_render().

◆ screen

ui_screen_t terminal_screen_config_t::screen

Definition at line 46 of file terminal_screen.h.

Referenced by terminal_screen_compose(), and terminal_screen_render().

◆ show_logs

bool terminal_screen_config_t::show_logs

Whether to show log feed below header.

Definition at line 54 of file terminal_screen.h.

Referenced by terminal_screen_compose().

◆ user_data

void* terminal_screen_config_t::user_data

Passed to render_header callback.

Definition at line 52 of file terminal_screen.h.

Referenced by terminal_screen_compose(), and terminal_screen_render().

◆ user_data_size

size_t terminal_screen_config_t::user_data_size

Definition at line 48 of file terminal_screen.h.

Referenced by terminal_screen_render().


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