Class PowerLineColor
PowerLine writer
Inheritance
object
PowerLineColor
Namespace: Terminaux.Writer.FancyWriters
Assembly: Terminaux.dll
Syntax
public static class PowerLineColor
Methods
| Edit this page View SourceRenderPowerLine(List<PowerLineSegment>, bool)
Renders the PowerLine text
Declaration
public static string RenderPowerLine(List<PowerLineSegment> Segments, bool Line = false)
Parameters
Type | Name | Description |
---|---|---|
List<PowerLineSegment> | Segments | Segments to write |
bool | Line | Write new line after writing the segments |
Returns
Type | Description |
---|---|
string |
RenderPowerLine(List<PowerLineSegment>, Color, bool)
Renders the PowerLine text
Declaration
public static string RenderPowerLine(List<PowerLineSegment> Segments, Color EndingColor, bool Line = false)
Parameters
Type | Name | Description |
---|---|---|
List<PowerLineSegment> | Segments | Segments to write |
Color | EndingColor | A color that will be changed at the end of the transition |
bool | Line | Write new line after writing the segments |
Returns
Type | Description |
---|---|
string |
WritePowerLine(List<PowerLineSegment>, Color, bool)
Writes the PowerLine text
Declaration
public static void WritePowerLine(List<PowerLineSegment> Segments, Color EndingColor, bool Line = false)
Parameters
Type | Name | Description |
---|---|---|
List<PowerLineSegment> | Segments | List of PowerLine segments |
Color | EndingColor | A color that will be changed at the end of the transition |
bool | Line | Write new line after writing the segments |
WritePowerLinePlain(List<PowerLineSegment>, bool)
Writes the PowerLine text
Declaration
public static void WritePowerLinePlain(List<PowerLineSegment> Segments, bool Line = false)
Parameters
Type | Name | Description |
---|---|---|
List<PowerLineSegment> | Segments | Segments to write |
bool | Line | Write new line after writing the segments |