PTY session management for a computer.
Maps to POST /computers/:id/terminal (create) and
POST /computers/:id/pty/:session_id/resize (resize).
Summary
Functions
Open a new PTY session (POST /computers/:computer_id/terminal).
Resize an existing PTY session
(POST /computers/:computer_id/pty/:session_id/resize).
Functions
@spec create(Miosa.Client.t(), String.t(), map()) :: Miosa.Client.result(map())
Open a new PTY session (POST /computers/:computer_id/terminal).
Options
:cols— Terminal column width.:rows— Terminal row count.:shell— Shell binary path (e.g."/bin/bash").:cwd— Working directory inside the VM.:env— Environment variables map.
@spec resize(Miosa.Client.t(), String.t(), String.t(), pos_integer(), pos_integer()) :: Miosa.Client.result(map())
Resize an existing PTY session
(POST /computers/:computer_id/pty/:session_id/resize).