Skip to the content.

PromptPlus API:IJointConsole

Build Publish License NuGet Downloads

Back to List Api

IJointConsole

Namespace: PPlus.Drivers

Represents the interface with all Methods of the Joint control

public interface IJointConsole

Methods

CountLines()

Get number of lines write on Join.

int CountLines()

Returns

Int32

DoubleDash(String, DashOptions, Int32, Nullable<Style>)

Writes text line representation whie colors in a pair of lines of dashes and next.

IJointConsole DoubleDash(string value, DashOptions dashOptions, int extralines, Nullable<Style> style)

Parameters

value String
The value to write.

dashOptions DashOptions
DashOptions character

extralines Int32
Number lines to write after write value

style Nullable<Style>
The Style to write.

Returns

IJointConsole

SingleDash(String, DashOptions, Int32, Nullable<Style>)

Writes text line representation whie colors and Write single dash after and next.

IJointConsole SingleDash(string value, DashOptions dashOptions, int extralines, Nullable<Style> style)

Parameters

value String
The value to write.

dashOptions DashOptions
DashOptions character

extralines Int32
Number lines to write after write value

style Nullable<Style>
The Style to write.

Returns

IJointConsole

Write(Func<String>)

Write result function to output console and next.

IJointConsole Write(Func<String> func)

Parameters

func Func<String>
The function

Returns

IJointConsole

Write(Exception, Nullable<Style>, Boolean)

Write a Exception to output console and next

IJointConsole Write(Exception value, Nullable<Style> style, bool clearrestofline)

Parameters

value Exception
Exception to write

style Nullable<Style>
Style of text

clearrestofline Boolean
Clear rest of line after write

Returns

IJointConsole

Write(String, Nullable<Style>, Boolean)

Write a text to output console and next

IJointConsole Write(string value, Nullable<Style> style, bool clearrestofline)

Parameters

value String

style Nullable<Style>

clearrestofline Boolean

Returns

IJointConsole

WriteLine(Func<String>)

Write result function with line terminator to output console next.

IJointConsole WriteLine(Func<String> func)

Parameters

func Func<String>
The function

Returns

Number of lines write on console

WriteLine(Exception, Nullable<Style>, Boolean)

Write a Exception with line terminator to output console and next

IJointConsole WriteLine(Exception value, Nullable<Style> style, bool clearrestofline)

Parameters

value Exception
Exception to write

style Nullable<Style>
Style of text

clearrestofline Boolean
Clear rest of line after write

Returns

IJointConsole

WriteLine(String, Nullable<Style>, Boolean)

Write a text to output console with line terminator and next.

IJointConsole WriteLine(string value, Nullable<Style> style, bool clearrestofline)

Parameters

value String
text to write

style Nullable<Style>
Style of text

clearrestofline Boolean
Clear rest of line after write

Returns

IJointConsole

WriteLines(Int32)

Write lines with line terminator and next

IJointConsole WriteLines(int steps)

Parameters

steps Int32
Numbers de lines.

Returns

IJointConsole


Back to List Api