KetraTerm
API · DevelopmentAll versions

pasteText

Pastes supplied text into the active terminal session without reading the clipboard.

Call on the EDT. Hosts may read the clipboard off-thread, then verify their intended session is still bound on the EDT before calling this method. The session's normal paste policies, mode snapshot, ordering, and bounded admission apply.

Nonempty input invalidates shell suggestions before admission. Invalidation callbacks run synchronously and propagate their failures; if they change or remove the bound session, rebind even the same session, or close it, no paste is submitted.

Return

true when the bound session admits the paste, false for empty input, unavailable sessions, calls outside the EDT, or rejected admission. Admission does not promise transport completion.

Parameters

text

host-supplied paste text.