webmaster442.windowsterminal.fragments.terminalprofile - webmaster442/WindowsTerminal GitHub Wiki

< Back


TerminalProfile

Namespace: Webmaster442.WindowsTerminal.Fragments

A profile is a set of settings that can be applied to a terminal window.

public class TerminalProfile : System.IEquatable`1[[Webmaster442.WindowsTerminal.Fragments.TerminalProfile, Webmaster442.WindowsTerminal, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectTerminalProfile
Implements IEquatable<TerminalProfile>
Attributes NullableContextAttribute, NullableAttribute, RequiredMemberAttribute

Properties

EqualityContract

protected Type EqualityContract { get; }

Property Value

Type

Name

This is the name of the profile that will be displayed in the dropdown menu.

public string Name { get; set; }

Property Value

String

CommandLine

This is the executable used in the profile.

public string CommandLine { get; set; }

Property Value

String

StartingDirectory

This is the directory the shell starts in when it is loaded.

public string StartingDirectory { get; set; }

Property Value

String

Icon

This sets the icon that displays within the tab, dropdown menu, jumplist, and tab switcher.

public string Icon { get; set; }

Property Value

String

TabTitle

If set, this will replace the name as the title to pass to the shell on startup. Some shells (like bash) may choose to ignore this initial value, while others (Command Prompt, PowerShell) may use this value over the lifetime of the application.

public string TabTitle { get; set; }

Property Value

String

Elevate

If set, this profile will automatically open up in an "elevated" window (running as Administrator) by default.

public bool Elevate { get; set; }

Property Value

Boolean

Hidden

If hidden is set to true, the profile will not appear in the list of profiles. This can be used to hide default profiles and dynamically generated profiles

public bool Hidden { get; set; }

Property Value

Boolean

ColorScheme

This is the name of the color scheme used in the profile. Color schemes are defined in the schemes object.

public string ColorScheme { get; set; }

Property Value

String

UseAcrylic

When this is set to true, the window will have an acrylic background. When it's set to false, the window will have a plain, untextured background.

public bool UseAcrylic { get; set; }

Property Value

Boolean

BackgroundImage

This sets the file location of the image to draw over the window background. The background image can be a .jpg, .png, or .gif file. "desktopWallpaper" will set the background image to the desktop's wallpaper.

public string BackgroundImage { get; set; }

Property Value

String

BackgroundImageOpacity

This sets the transparency of the background image.

public double BackgroundImageOpacity { get; set; }

Property Value

Double

BackgroundImageAlignment

This sets how the background image aligns to the boundaries of the window.

public TerminalBackgroundImageAlignment BackgroundImageAlignment { get; set; }

Property Value

TerminalBackgroundImageAlignment

BackgroundImageStretchMode

This sets how the background image is resized to fill the window.

public TerminalBackgroundImageStretchMode BackgroundImageStretchMode { get; set; }

Property Value

TerminalBackgroundImageStretchMode

Opacity

This sets the transparency of the window for the profile. This accepts an integer value from 0-100, representing a "percent opaque". 100 is "fully opaque", 50 is semi-transparent, and 0 is fully transparent.

public int Opacity { get; set; }

Property Value

Int32

ShowMarksOnScrollbar

Show marks on the scrollbar. Enable this option for shell integration.

public bool ShowMarksOnScrollbar { get; set; }

Property Value

Boolean

AutoMarkPrompts

Atuo mark prompts. Enable this option for shell integration.

public bool AutoMarkPrompts { get; set; }

Property Value

Boolean

Font

Font settings for the profile

public TerminalFont Font { get; set; }

Property Value

TerminalFont

Constructors

TerminalProfile()

Caution

Constructors of types with required members are not supported in this version of your compiler.


Creates a new instance of the TerminalProfile class.

public TerminalProfile()

TerminalProfile(TerminalProfile)

protected TerminalProfile(TerminalProfile original)

Parameters

original TerminalProfile

Methods

CreateAnaconda3(String)

Crates a Terminal profile for Anaconda3

public static TerminalProfile CreateAnaconda3(string installPath)

Parameters

installPath String
Anaconda3 install path.

Returns

TerminalProfile
A terminal profile configured for Anaconda3.

CreateCmder(String)

Crates a Terminal profile for Cmder

public static TerminalProfile CreateCmder(string installPath)

Parameters

installPath String
Cmder install path.

Returns

TerminalProfile
A terminal profile configured for Cmder

CreateCygwin(String)

Creates a Terminal profile for Cygwin

public static TerminalProfile CreateCygwin(string installPath)

Parameters

installPath String
Cygwin install path.

Returns

TerminalProfile
A terminal profile configured for Cygwin

CreateFarManager(String)

Creates a Terminal profile for Far Manager

public static TerminalProfile CreateFarManager(string installPath)

Parameters

installPath String
Far manager install path.

Returns

TerminalProfile
A terminal profile configured for Far

CreateGitBash(String)

Creates a Terminal profile for Git Bash

public static TerminalProfile CreateGitBash(string installPath)

Parameters

installPath String
Git bash install path

Returns

TerminalProfile
A terminal profile configured for git bash

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(TerminalProfile)

public bool Equals(TerminalProfile other)

Parameters

other TerminalProfile

Returns

Boolean

<Clone>$()

public TerminalProfile <Clone>$()

Returns

TerminalProfile


< Back

⚠️ **GitHub.com Fallback** ⚠️