-
Notifications
You must be signed in to change notification settings - Fork 0
webmaster442.windowsterminal.terminal
Namespace: Webmaster442.WindowsTerminal
Windows terminal interaction class
public static class TerminalChecks if the current output is UTF8 or not
public static bool IsOutputUtf8 { get; }Check if sixel is supported
public static bool IsSixelSupported { get; }Get the current session id
public static string GetCurrentSessionId()String
The current windows Session id. Returns null, if program is not running in Windows Terminal
Get the specified color of the current terminal palette
public static ValueTuple<byte, byte, byte> GetPaletteColor(int colorIndex)colorIndex Int32
Color index to get. Must be between 0 and 15
ValueTuple<Byte, Byte, Byte>
24 bit RGB color
Check if the current program is running inside the Windows Terminal
public static bool IsRunningInsideWindowsTerminal()Boolean
True, if App is running inside windows terminal
Set the progressbar state
public static void SetProgressbar(ProgressbarState progressbarState, int value)progressbarState ProgressbarState
Progress bar state
value Int32
progress bar value
Set the window title
public static void SetWindowTitle(string title)title String
Title to set
Switch to alternate buffer
public static void SwitchToAlternateBuffer()Switch to main buffer
public static void SwitchToMainBuffer()Get the terminal window size in pixels
public static ValueTuple<int, int> GetTerminalWindowSize()ValueTuple<Int32, Int32>
A value tuple with the terminal window size