SshPtyState¶
Immutable PTY state. Replaced (not mutated) on window-change.
Constructors¶
create¶
new val create(
term': String val,
width_chars': U32 val,
height_rows': U32 val,
width_pixels': U32 val,
height_pixels': U32 val,
modes': Array[(U8 val , U32 val)] val)
: SshPtyState val^
Parameters¶
- term': String val
- width_chars': U32 val
- height_rows': U32 val
- width_pixels': U32 val
- height_pixels': U32 val
- modes': Array[(U8 val , U32 val)] val
Returns¶
- SshPtyState val^
none¶
Returns¶
- SshPtyState val^
with_dimensions¶
Create a new SshPtyState with updated dimensions, keeping term and modes.
new val with_dimensions(
original: SshPtyState val,
width_chars': U32 val,
height_rows': U32 val,
width_pixels': U32 val,
height_pixels': U32 val)
: SshPtyState val^
Parameters¶
- original: SshPtyState val
- width_chars': U32 val
- height_rows': U32 val
- width_pixels': U32 val
- height_pixels': U32 val
Returns¶
- SshPtyState val^
Public fields¶
let term: String val¶
let width_chars: U32 val¶
let height_rows: U32 val¶
let width_pixels: U32 val¶
let height_pixels: U32 val¶
let modes: Array[(U8 val , U32 val)] val¶
Public Functions¶
mode_value¶
Look up a mode value by opcode. Returns 0 if not found.
Parameters¶
- opcode: U8 val
Returns¶
- U32 val
transform¶
Apply active terminal mode transformations to incoming data.