Skip to content

SshPtyState

[Source]

Immutable PTY state. Replaced (not mutated) on window-change.

class val SshPtyState

Constructors

create

[Source]

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


none

[Source]

new val none()
: SshPtyState val^

Returns


with_dimensions

[Source]

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


Public fields

let term: String val

[Source]


let width_chars: U32 val

[Source]


let height_rows: U32 val

[Source]


let width_pixels: U32 val

[Source]


let height_pixels: U32 val

[Source]


let modes: Array[(U8 val , U32 val)] val

[Source]


Public Functions

mode_value

[Source]

Look up a mode value by opcode. Returns 0 if not found.

fun val mode_value(
  opcode: U8 val)
: U32 val

Parameters

  • opcode: U8 val

Returns


transform

[Source]

Apply active terminal mode transformations to incoming data.

fun val transform(
  data: Array[U8 val] val)
: Array[U8 val] val

Parameters

Returns