# TerminalStoryFluent

Hand-written fluent methods of TerminalStory that do more than set one property.

 Class  

`ChartForgeX.Terminal`

**Namespace**

`ChartForgeX.Terminal`

**Assembly**

`ChartForgeX.Stories`

**Source**

[TerminalStory.Fluent.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Terminal/TerminalStory.Fluent.cs#L13)

**Modifiers**

static

Hand-written fluent methods of [TerminalStory](/api/chartforgex-terminal-terminalstory/) that do more than set one property.

## Inheritance

- object
- TerminalStoryFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static TerminalStory CharactersPerSecond(TerminalStory terminalStory, double value)` [#](#method-characterspersecond-chartforgex-terminal-terminalstory-double) 

Sets [TerminalStory.CharactersPerSecond](/api/chartforgex-terminal-terminalstory/): Gets or sets the simulated typing speed, from 5 to 200 characters per second.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value double required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property                 // C# fluent
terminalStory.CharactersPerSecond = value;    terminalStory.CharactersPerSecond(value);
```

 `public static TerminalStory Dialect(TerminalStory terminalStory, TerminalDialect dialect, string? customPrompt = null, ThemeMode themeMode = Dark, TerminalStyleOptions? style = null)` [#](#method-dialect-chartforgex-terminal-terminalstory-chartforgex-terminal-terminaldialect-string-chartforgex-thememode-chartforgex-terminal-terminalstyleoptions) 

[TerminalStory.Fluent.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Terminal/TerminalStory.Fluent.cs#L13)

Sets the prompt dialect and optional custom prompt.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

**dialect ChartForgeX.Terminal.TerminalDialect required**

**customPrompt string? = null optional**

**themeMode ChartForgeX.ThemeMode = Dark optional**

**style ChartForgeX.Terminal.TerminalStyleOptions? = null optional**

Returns

 `TerminalStory` 

 `public static TerminalStory InitialDelaySeconds(TerminalStory terminalStory, double value)` [#](#method-initialdelayseconds-chartforgex-terminal-terminalstory-double) 

Sets [TerminalStory.InitialDelaySeconds](/api/chartforgex-terminal-terminalstory/): Gets or sets the initial animation delay, from 0 to 10 seconds.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value double required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property                 // C# fluent
terminalStory.InitialDelaySeconds = value;    terminalStory.InitialDelaySeconds(value);
```

 `public static TerminalStory LineDelaySeconds(TerminalStory terminalStory, double value)` [#](#method-linedelayseconds-chartforgex-terminal-terminalstory-double) 

Sets [TerminalStory.LineDelaySeconds](/api/chartforgex-terminal-terminalstory/): Gets or sets the delay between output lines, from 0 to 3 seconds.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value double required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property              // C# fluent
terminalStory.LineDelaySeconds = value;    terminalStory.LineDelaySeconds(value);
```

 `public static TerminalStory RasterScale(TerminalStory terminalStory, int value)` [#](#method-rasterscale-chartforgex-terminal-terminalstory-int32) 

Sets [TerminalStory.RasterScale](/api/chartforgex-terminal-terminalstory/): Gets or sets the PNG output density multiplier, from 1 to 4.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value int required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property         // C# fluent
terminalStory.RasterScale = value;    terminalStory.RasterScale(value);
```

 `public static TerminalStory ShowFinalPrompt(TerminalStory terminalStory, bool value = true)` [#](#method-showfinalprompt-chartforgex-terminal-terminalstory-boolean) 

Sets [TerminalStory.ShowFinalPrompt](/api/chartforgex-terminal-terminalstory/): Gets or sets whether the completed story shows a final prompt and cursor.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property             // C# fluent
terminalStory.ShowFinalPrompt = value;    terminalStory.ShowFinalPrompt(value);
```

 Style 2 overloads 

 `public static TerminalStory Style(TerminalStory terminalStory, TerminalStyleOptions value)` [#](#method-style-chartforgex-terminal-terminalstory-chartforgex-terminal-terminalstyleoptions) 

Sets [TerminalStory.Style](/api/chartforgex-terminal-terminalstory/): Gets the initial-tab cursor and title-bar styling.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value ChartForgeX.Terminal.TerminalStyleOptions required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
terminalStory.Style = value;     terminalStory.Style(value);
```

 `public static TerminalStory Style(TerminalStory terminalStory, Action<TerminalStyleOptions> configure)` [#](#method-style-chartforgex-terminal-terminalstory-action-chartforgex-terminal-terminalstyleoptions) 

Configures a copy of [TerminalStory.Style](/api/chartforgex-terminal-terminalstory/) (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the initial-tab cursor and title-bar styling.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**configure System.Action<ChartForgeX.Terminal.TerminalStyleOptions> required**

Configures the copy.

Returns

 `TerminalStory` The same instance. 

 `public static TerminalStory TabHoldSeconds(TerminalStory terminalStory, double value)` [#](#method-tabholdseconds-chartforgex-terminal-terminalstory-double) 

Sets [TerminalStory.TabHoldSeconds](/api/chartforgex-terminal-terminalstory/): Gets or sets the minimum reading time (0 to 10 seconds) after new content appears and before the active tab changes.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value double required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property            // C# fluent
terminalStory.TabHoldSeconds = value;    terminalStory.TabHoldSeconds(value);
```

 `public static TerminalStory Theme(TerminalStory terminalStory, VisualTheme value)` [#](#method-theme-chartforgex-terminal-terminalstory-chartforgex-themes-visualtheme) 

Sets [TerminalStory.Theme](/api/chartforgex-terminal-terminalstory/): Gets or sets the initial-tab terminal theme. Set it before timeline authoring.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value ChartForgeX.Themes.VisualTheme required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
terminalStory.Theme = value;     terminalStory.Theme(value);
```

 `public static TerminalStory ThemeMode(TerminalStory terminalStory, ThemeMode value)` [#](#method-thememode-chartforgex-terminal-terminalstory-chartforgex-thememode) 

Sets [TerminalStory.ThemeMode](/api/chartforgex-terminal-terminalstory/): Gets or sets the explicit initial-tab light or dark appearance. Set it before timeline authoring.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value ChartForgeX.ThemeMode required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property       // C# fluent
terminalStory.ThemeMode = value;    terminalStory.ThemeMode(value);
```

 `public static TerminalStory Title(TerminalStory terminalStory, string value)` [#](#method-title-chartforgex-terminal-terminalstory-string) 

Sets [TerminalStory.Title](/api/chartforgex-terminal-terminalstory/): Gets or sets the initial-tab title-bar text. Set it before timeline authoring.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value string required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
terminalStory.Title = value;     terminalStory.Title(value);
```

 `public static TerminalStory Width(TerminalStory terminalStory, int value)` [#](#method-width-chartforgex-terminal-terminalstory-int32) 

Sets [TerminalStory.Width](/api/chartforgex-terminal-terminalstory/): Gets or sets the logical SVG width, from 480 to 1800.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value int required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
terminalStory.Width = value;     terminalStory.Width(value);
```

 `public static TerminalStory WindowStyle(TerminalStory terminalStory, TerminalWindowStyle value)` [#](#method-windowstyle-chartforgex-terminal-terminalstory-chartforgex-terminal-terminalwindowstyle) 

Sets [TerminalStory.WindowStyle](/api/chartforgex-terminal-terminalstory/): Gets or sets the visible terminal window chrome independently of colors and command syntax.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value ChartForgeX.Terminal.TerminalWindowStyle required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property         // C# fluent
terminalStory.WindowStyle = value;    terminalStory.WindowStyle(value);
```

 `public static TerminalStory WorkingDirectory(TerminalStory terminalStory, string value)` [#](#method-workingdirectory-chartforgex-terminal-terminalstory-string) 

Sets [TerminalStory.WorkingDirectory](/api/chartforgex-terminal-terminalstory/): Gets or sets the working directory shown in initial-tab prompts. Set it before timeline authoring.

Parameters

**terminalStory ChartForgeX.Terminal.TerminalStory required**

The instance.

**value string required**

The value.

Returns

 `TerminalStory` The same instance. 

Examples

```csharp
// C# initializer or property              // C# fluent
terminalStory.WorkingDirectory = value;    terminalStory.WorkingDirectory(value);
```

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:21AAF85C70FA70912B1127727AC96F73D111597ED5875040368E116A8A67DF0E -->
