ComputeTerminal

Overview

A live terminal session returned by <code>api.compute.terminals.create()</code>, <code>list()</code> and <code>get()</code>.

serialized stateincremental output
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

MethodDescription
run(line)Send a line to an idle terminal.
output(options)Read output after a cursor and refresh state.
preview()Get the current preview URL, if a port is published.
interrupt()Interrupt the running command while keeping the terminal.
kill()Stop and close the terminal.

The instance also exposes id, name, command, storageId, cwd, status, busy, exitCode, by, startedAt, port and url. toJSON() returns the serializable public state without the client.