Something went wrong. Try again.
A GPU terminal emulator for Wayland and Windows on libghostty-vt, drawing with Vulkan, running a program on a pty or a serial port.
Something went wrong. Try again.
123456789101112131415// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! What an event loop waits on: a file descriptor polled for readiness on//! Linux, and on Windows a handle waited on until it is signaled — an event,//! a process, or the event of an overlapped read.
const std = @import("std");const builtin = @import("builtin");
pub const Handle = switch (builtin.os.tag) { .windows => std.os.windows.HANDLE, else => std.posix.fd_t,};