Table of Contents

Interface IWtmuxComPluginHost3

Namespace
WTmux.Core.Plugins
Assembly
WTmux.Core.dll

Additive COM host interface (version 3) exposing the ability to run wtmux commands from a plugin. A COM plugin obtains it by querying its host for this interface; the earlier host interfaces are unchanged so existing plugins keep working.

[GeneratedComInterface(StringMarshalling = StringMarshalling.Utf16)]
[Guid("3A2F8E01-7B4C-4D5A-9E1F-0A2B3C4D5E04")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[IUnknownDerived<InterfaceInformation, InterfaceImplementation>]
public interface IWtmuxComPluginHost3

Methods

RunCommand(string, out string, out bool)

Executes a wtmux command in the server's global context (there is no attached client). Client-independent commands work — global option changes (set-option -g), config commands (source-file/reload-config), key bindings (bind/unbind), and queries (show-option). Commands that act on the current client/session (e.g. new-window, display-message) return a failure from this context.

void RunCommand(string command, out string output, out bool success)

Parameters

command string

The command line to run.

output string

Receives any textual output produced by the command.

success bool

Receives whether the command completed successfully.