webmaster442.windowsterminal.fragments.terminalcommand - webmaster442/WindowsTerminal GitHub Wiki
Namespace: Webmaster442.WindowsTerminal.Fragments
Represents a terminal command
public sealed class TerminalCommand
Inheritance Object → TerminalCommand
Attributes NullableContextAttribute, NullableAttribute
This closes all open terminal windows. A confirmation dialog will appear in the current window to ensure you'd like to close all windows.
public static TerminalCommand Quit;
This closes the current window and all tabs within it.
public static TerminalCommand CloseWindow;
Opens the system menu at the top left corner of the window.
public static TerminalCommand OpenSystemMenu;
This allows you to switch between full screen and default window sizes.
public static TerminalCommand toggleFullscreen;
This allows you to enter "focus mode", which hides the tabs and title bar.
public static TerminalCommand ToggleFocusMode;
This allows you toggle the "always on top" state of the window. When in "always on top" mode, the window will appear on top of all other non-topmost windows.
public static TerminalCommand ToggleAlwaysOnTop;
This closes all tabs except for the one at an index. If no index is provided, use the focused tab's index.
public static TerminalCommand CloseOtherTabs;
This closes the tabs following the tab at an index. If no index is provided, use the focused tab's index.
public static TerminalCommand CloseTabsAfter;
This makes a copy of the current tab's profile and directory and opens it. This does not include modified/added ENV VARIABLES.
public static TerminalCommand DuplicateTab;
This opens the tab to the right of the current one.
public static TerminalCommand NextTab;
This opens the tab to the left of the current one.
public static TerminalCommand PrevTab;
This command will toggle "broadcast mode" for a pane. When broadcast mode is enabled, all input sent to the pane will be sent to all panes in the same tab. This is useful for sending the same input to multiple panes at once. As with any action, you can also invoke "broadcast mode" by search for "Toggle broadcast input to all panes" in the Command palette.
public static TerminalCommand ToggleBroadcastInput;
This command will open the "right-click" context menu for the active pane. This menu has context-relevant actions for managing panes, copying and pasting, and more.
public static TerminalCommand showContextMenu;
Send arbitrary text input to the shell. As an example the input "text\n" will write "text" followed by a newline to the shell. ANSI escape sequences may be used, but escape codes like \x1b must be written as \u001b. For instance "\u001b[A" will behave as if the up arrow button had been pressed.
public static TerminalCommand SendInput(string input)
input
String
The text input to feed into the shell.
TerminalCommand
A command that sends text input to the shell.
This changes the opacity of the window. If relative is set to true, it will adjust the opacity relative to the current opacity. Otherwise, it will set the opacity directly to the given opacity
public static TerminalCommand AdjustOpacity(int opacity, Nullable<bool> relative)
opacity
Int32
How opaque the terminal should become or how much the opacity should be changed by, depending on the value of relative
relative
Nullable<Boolean>
If true, then adjust the current opacity by the given opacity parameter. If false, set the opacity to exactly that value.
TerminalCommand
A command that adjusts opacity
Changes the active color scheme.
public static TerminalCommand SetColorScheme(string scheme)
scheme
String
The name of the color scheme to apply.