Something went wrong. Try again.
A charm-like tui library
Something went wrong. Try again.
1234567891011121314151617181920212223//! PTY metadata for an SSH session.//!//! Mirrors charmbracelet/ssh.Pty: a `Window` struct carrying terminal//! geometry plus the requested `term` name and raw mode string.
const std = @import("std");
pub const Window = struct { width: u32, height: u32, /// Pixel dimensions if the client supplied them. Most clients send 0/0. pixel_width: u32 = 0, pixel_height: u32 = 0,};
pub const Pty = struct { term: []const u8 = "", window: Window = .{ .width = 0, .height = 0 }, /// Raw `pty-req` modes payload as defined in RFC 4254 §8. Opaque here; /// callers that need to parse should walk the byte stream themselves. modes: []const u8 = "",};