ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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
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 53 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 58 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 62 of file terminal_screen.h.

Referenced by terminal_screen_compose().

◆ minimum_cols

int terminal_screen_config_t::minimum_cols

Definition at line 57 of file terminal_screen.h.

Referenced by terminal_screen_render().

◆ output_fd

int terminal_screen_config_t::output_fd

Definition at line 55 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 60 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 54 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 63 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 61 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 56 of file terminal_screen.h.

Referenced by terminal_screen_render().


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