ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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 <libplatform/terminal.h>
26#include <stdbool.h>
27
28/* Forward declarations */
30
42
75int display_init();
76
92bool display_has_tty();
93
110void display_full_reset();
111
130
150
177 const char *frame_data);
178
182
205void display_cleanup();
206
207extern 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.