//! 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 = "", };