View Source KinoK8s.KinoTerminal (kino_k8s v1.2.4)

A Livebook Kino providing a Terminal to a Kubernetes Pod.

Summary

Functions

Opens a terminal using xterm.js. Expects connect to be a function to establish the connection to the underlying IO process. The function will be called passing the pid of this Kino and is expected to return a function that should be used to send messages to the process.

Functions

@spec open((kino_terminal_pid :: pid() -> send_to_process :: (term() -> term()))) ::
  Kino.JS.Live.t()

Opens a terminal using xterm.js. Expects connect to be a function to establish the connection to the underlying IO process. The function will be called passing the pid of this Kino and is expected to return a function that should be used to send messages to the process.