ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
terminal_screen.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <stdbool.h>
16#include <stddef.h>
19
20/* Forward declaration of session_log_buffer_t */
22
37typedef void (*terminal_screen_header_fn)(frame_buffer_t *buf, terminal_size_t term_size, void *user_data);
38
48
68
76
86
93
101
111
Buffered terminal frame rendering.
ClangTool/LibTooling compatibility shim for stdbool.h.
Frame buffer structure.
Internal circular buffer structure.
Configuration for terminal screen rendering.
terminal_screen_header_fn render_header
Callback to draw header content.
int fixed_header_lines
How many lines the header takes (e.g., 4 for status, 8 for splash)
bool show_logs
Whether to show log feed below header.
void * user_data
Passed to render_header callback.
Terminal size structure.
Definition terminal.h:163
🖥️ Cross-platform terminal interface for ascii-chat
void(* terminal_screen_header_fn)(frame_buffer_t *buf, terminal_size_t term_size, void *user_data)
Callback to render the fixed header portion of the screen.
void terminal_screen_log_destroy(void)
Standard log cleanup for terminal screens.
session_log_buffer_t * terminal_screen_get_log_buffer(void)
Get the current session log buffer.
void terminal_screen_render(const terminal_screen_config_t *config)
Render a terminal screen with fixed header and scrolling logs.
void terminal_screen_cleanup(void)
Clean up terminal screen resources.
void terminal_screen_log_clear(void)
Clear buffered logs for terminal screens.
session_log_buffer_t * terminal_screen_log_init(void)
Initialize session log buffer for terminal screens.
void terminal_screen_set_output_fd(int fd)
Set output file descriptor for terminal screens (splash/status)