ComputeTerminal

interrupt()

terminal.interrupt() → Promise<ComputeTerminal>

Send an interrupt to the current command without closing its terminal.

Using Python?

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

await terminal.interrupt();
console.log(terminal.status, terminal.busy);
terminal.interrupt()
print(terminal.status, terminal.busy)

The instance refreshes from the returned terminal record. The terminal remains open and can accept another line when it is idle.