Table of Contents

Enum ConfigLocations

Namespace
Terminal.Gui.Configuration
Assembly
Terminal.Gui.dll

Describes the location of the configuration settings. The constants can be combined (bitwise) to specify multiple locations. The more significant the bit, the higher the priority the location, meaning that the last location will override the earlier ones.

[Flags]
public enum ConfigLocations

Fields

All = HardCoded | LibraryResources | AppResources | GlobalHome | GlobalCurrent | AppHome | AppCurrent | Env | Runtime

This constant is a combination of all locations

AppCurrent = 64

App settings in the current directory (e.g. ./.tui/MyApp.config.json).

AppHome = 32

App settings in the home directory (e.g. ~/.tui/MyApp.config.json).

AppResources = 4

App resources (e.g. MyApp.Resources.config.json). See AppSettingsScope.

Env = 128

Settings from the TUI_CONFIG environment variable.

GlobalCurrent = 16

Global settings in the current directory (e.g. ./.tui/config.json).

GlobalHome = 8

Global settings in the home directory (e.g. ~/.tui/config.json).

HardCoded = 1

Settings of the ConfigurationPropertyAttribute static properties when the module is initially loaded.

When the module is initialized, the ConfigurationManager will retrieve the values of the configuration properties from their corresponding static properties. These are default settings available even if IsEnabled is false.

LibraryResources = 2

Settings defined in Terminal.Gui.dll's resources (Terminal.Gui.Resources.config.json).

None = 0

No locations are specified. This is the default value.

Runtime = 256

Settings in the RuntimeConfig static property.