24main(
int argc,
char *argv[])
27 printf(
"Winter Terminal Debug Build \n");
36 printf(
"Starting Winter Terminal...\n");
39 (void)fprintf(stderr,
"Fatal: Could not initialize Pseudo Console API.\n");
43 printf(
"ConPTY initialized successfully.\n");
45 b32 is_running =
true;
54 if (frame_count >= 5) {
60 printf(
"Shutting down gracefully.\n");
Compile-time context detection, compiler abstractions, math utilities, and intrusive data structure m...
Core type definitions and fixed-width aliases.
#define ASSERT_NOT_NULL(ptr)
Asserts that a given pointer is not NULL.
static void print_context_info(void)
Prints OS, architecture, compiler, endianness, build, and C standard to stdout.
struct pty_state_t PTY_State
Encapsulates the OS-level state of an active Pseudo Console session.
b32 pty_init(struct pty_state_t *state, u16 columns, u16 rows)
Initializes a Pseudo Console and establishes bidirectional communication pipes.
void pty_cleanup(struct pty_state_t *state)
Terminates the Pseudo Console session and releases all active system handles.
Pseudo Console (PTY) lifecycle, stream management, and shell process spawning.