PtyEventListener

Host callbacks for a running PTY-backed terminal session.

Implementations should return quickly. Metadata callbacks are delivered from the connector reader thread as parser output is handled.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun bell(session: TerminalSession)

Called when BEL is received from the terminal process.

Link copied to clipboard

Called after a valid OSC 7 current-working-directory URI is accepted.

Link copied to clipboard

Called when the shell requests deminimizing (restoring) the window.

Link copied to clipboard
abstract fun iconTitleChanged(session: TerminalSession, title: String)

Called after the OSC icon title changes.

Link copied to clipboard
abstract fun listenerFailed(session: TerminalSession, exception: Exception)

Called when another listener callback throws.

Link copied to clipboard
open fun lowerWindow(session: TerminalSession)

Called when the shell requests lowering the window.

Link copied to clipboard
open fun minimizeWindow(session: TerminalSession)

Called when the shell requests minimizing the window.

Link copied to clipboard
open fun moveWindow(session: TerminalSession, x: Int, y: Int)

Called when the shell requests moving the window.

Link copied to clipboard
open fun raiseWindow(session: TerminalSession)

Called when the shell requests raising the window.

Link copied to clipboard
abstract fun resizeWindow(session: TerminalSession, rows: Int, columns: Int)

Called when the shell requests a window resize.

Link copied to clipboard
open fun setMaximized(session: TerminalSession, maximize: Boolean)

Called when the shell requests maximizing or restoring the window.

Link copied to clipboard

Called when an OSC 133 shell integration marker is received.

Link copied to clipboard
open fun showNotification(session: TerminalSession, title: String, body: String, level: NotificationLevel)

Called when the shell requests a desktop notification.

Link copied to clipboard

Called when OSC 52 clipboard write policy requires a product-host prompt.

Link copied to clipboard

Called when OSC 52 clipboard write policy permits a decoded text payload.

Link copied to clipboard
abstract fun windowTitleChanged(session: TerminalSession, title: String)

Called after the OSC window title changes.