ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
src/client/display.h
Go to the documentation of this file.
1#include "connection.h"
22
23#pragma once
24
25#include <stdbool.h>
26#include <libplatform/terminal.h>
27
28/* Forward declarations */
30
42
73int display_init();
74
88bool display_has_tty();
89
106void display_full_reset();
107
124
144
169void display_render_frame(client_connection_t *connection, const char *frame_data);
170
173
194void display_cleanup();
195
196extern tty_info_t g_tty_info;
void display_set_context(session_display_ctx_t *display_ctx)
Set the display context created by session_client_like framework.
void display_reset_for_new_connection(client_connection_t *connection)
Reset display state for new connection.
void display_disable_logging_for_first_frame(client_connection_t *connection)
Disable terminal logging for first frame.
bool display_has_tty()
Check if display has TTY capability.
int display_init()
Initialize what is necessary to display ascii frames.
void display_full_reset()
Perform full display reset.
void display_render_frame(client_connection_t *connection, const char *frame_data)
Render ASCII frame to display.
void display_cleanup()
Cleanup display subsystem.
struct session_display_ctx session_display_ctx_t
session display config is intentionally a small, concrete record. Fields such as snapshot_mode,...
struct client_connection client_connection_t
tty_info_t g_tty_info
void display_poll_keyboard(client_connection_t *connection)
Runtime terminal state and reusable workspaces for ASCII rendering.