KetraTerm
API · DevelopmentAll versions

Package-level declarations

Types

Link copied to clipboard

Shared clipboard consent wording; terminal names are treated as untrusted text.

Link copied to clipboard
class SwingClipboardReader(ioDispatcher: CoroutineDispatcher = Dispatchers.IO)

Window-owned clipboard reader: at most one consent prompt per window and one native read across all instances. Busy requests complete without queuing.

Link copied to clipboard
class SwingClipboardReadPrompt(messages: SwingHostMessages, showDialog: (request: SwingDialogRequest, decide: (Int?) -> Unit) -> AutoCloseable) : AutoCloseable

Cancellable read consent owned by one terminal pane. All operations belong to the EDT. The product presents its standard dialog and returns a handle that closes it. No clipboard content is passed to the dialog.

Link copied to clipboard
data class SwingCompletionContext @JvmOverloads constructor(val profileId: String? = null, val workingDirectoryUri: String? = null, val shellCapabilities: TerminalShellCapabilities = TerminalShellCapabilities.PLAIN)

Immutable host metadata attached to a Swing completion request.

Link copied to clipboard
class SwingCompletionFeedbackRecorder(recordSuggestionFeedback: (commandLine: String, feedback: TerminalCompletionFeedbackKind, profileId: String?, workingDirectoryUri: String?, feedbackAtEpochMillis: Long) -> Unit, clockEpochMillis: () -> Long = System::currentTimeMillis)

Shared adapter from Swing suggestion feedback to completion statistics.

Link copied to clipboard
class SwingCompletionSuggestionProvider @JvmOverloads constructor(engine: TerminalCompletionEngine, contextProvider: () -> SwingCompletionContext, sourceLabels: Map<String, String>, feedbackHandler: SwingShellSuggestionFeedbackHandler = SwingShellSuggestionFeedbackHandler.NONE) : SwingShellSuggestionProvider

Host-neutral adapter from the pure completion engine to Swing suggestions.

Link copied to clipboard
class SwingDialogRequest(val title: String, val message: String, val severity: SwingDialogRequest.Severity, options: List<String> = listOf(SwingHostMessages.forLocale().message("dialog.ok")), val defaultOption: Int = options.lastIndex)

Plain-text content and choices for a standard product dialog. Both presenters return the chosen option index, or null for Escape, window close or disposal. Options are copied so a caller cannot change their meaning while UI is open.

Link copied to clipboard
fun interface SwingHostMessages

Message-bundle boundary for optional Swing host chrome and clipboard consent.

Link copied to clipboard

Standard Swing message/choice dialogs. All operations and callbacks belong to the EDT.

Link copied to clipboard

Shared Swing host context-menu item builder for terminal-owned actions.

Link copied to clipboard

Host-owned terminal pane actions that can be bound by applications embedding SwingTerminal.

Link copied to clipboard
data class SwingTerminalHostShortcut(val keyCode: Int, val modifiers: Int)

Immutable Swing keystroke descriptor for a host-owned terminal action.

Link copied to clipboard

Immutable mapping from host-owned terminal actions to Swing shortcuts.

Link copied to clipboard
class SwingTerminalOverlayPane @JvmOverloads constructor(content: JComponent, overlay: JComponent, overlayInsets: Insets = Insets(DEFAULT_TOP_INSET, 0, 0, DEFAULT_RIGHT_INSET)) : JPanel

Host-side overlay container for a terminal component and floating chrome.

Link copied to clipboard

Search-bar operations that embedding hosts can bind through their own action system.

Link copied to clipboard

Optional host-owned search bar for a SwingTerminal.

Link copied to clipboard

Prepared immutable colors for optional search chrome. Defaults retain the dark appearance. Hosts resolve their theme on its owning thread and pass a snapshot to SwingTerminalSearchBar.refreshColors. Dynamic Color subclasses are sampled at build time; repainting never queries host theme state. All ARGB values, including transparency, are retained. Use create and copy for named Kotlin or Java updates. Drafts are caller-confined and callbacks run synchronously; later draft or host-color changes cannot mutate a snapshot.

Link copied to clipboard

Shared ranges for terminal host settings controls and persisted preference normalization. These are UI preference limits, not core-buffer or renderer capability limits. Values outside them can still be valid for direct library configuration.