KetraTerm
API · DevelopmentAll versions

requestShellSuggestions

Opens a source on the EDT and collects it off the EDT into an existing interaction. This does not mount UI. Its request-specific observer is captured before collection. Closing the interaction cancels collection; final visible results survive stream completion. Each interaction accepts one provider collection. Combine independent sources in the provider.


fun requestShellSuggestions(commandText: String, cursorOffset: Int, anchorColumn: Int, anchorRow: Int, trigger: SwingShellSuggestionTrigger = SwingShellSuggestionTrigger.AUTOMATIC, editTarget: SwingShellSuggestionEditTarget? = null)

Captures a host command line, mounts the standard popup, and queries the configured provider. Calls on the EDT take effect immediately; other calls dispatch asynchronously. Automatic requests respect the automatic-popup setting; explicit requests respect the master switch.