Table of Contents

Class SettingsScope

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

The root object of Terminal.Gui configuration settings / JSON schema. Contains only properties attributed with SettingsScope.

[JsonConverter(typeof(ScopeJsonConverter<SettingsScope>))]
public class SettingsScope : Scope<SettingsScope>, IDictionary<string, ConfigProperty>, ICollection<KeyValuePair<string, ConfigProperty>>, IReadOnlyDictionary<string, ConfigProperty>, IReadOnlyCollection<KeyValuePair<string, ConfigProperty>>, IEnumerable<KeyValuePair<string, ConfigProperty>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
Inheritance
SettingsScope
Implements
Inherited Members

Examples

{
  "$schema" : "https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json",
  "Application.UseSystemConsole" : true,
  "Theme" : "Default",
  "Themes": {
  },
},

Properties

Schema

Points to our JSON schema.

Sources

The list of paths to the configuration files.

Methods

Update(Stream, string, ConfigLocations)

Updates the SettingsScope with the settings in a JSON string.

Update(string?, string, ConfigLocations)

Updates the SettingsScope with the settings in a JSON string.

Update(string, ConfigLocations)

Updates the SettingsScope with the settings in a JSON file.

UpdateFromResource(Assembly, string, ConfigLocations)

Updates the SettingsScope with the settings from a Json resource.