Header menu logo B2R2

IPrinter Type

Represents a printer interface. It is recommended to use this interface instead of other language primitives, such as System.Console or printfn.

Instance members

Instance member Description

this.Flush

Full Usage: this.Flush

Modifiers: abstract

Flushes out everything.

this.LogLevel

Full Usage: this.LogLevel

Returns: LogLevel
Modifiers: abstract

Returns the current log level of the printer.

Returns: LogLevel

this.Print

Full Usage: this.Print

Parameters:
Modifiers: abstract

Prints out the given OutString. If the optional log level lvl is provided, the string is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

os : OutString
?lvl : LogLevel

this.Print

Full Usage: this.Print

Parameters:
Modifiers: abstract

Prints out the given ColoredString. If the optional log level lvl is provided, the string is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

cs : ColoredString
?lvl : LogLevel

this.Print

Full Usage: this.Print

Parameters:
Modifiers: abstract

Prints out the given string. If the optional log level lvl is provided, the string is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

s : string
?lvl : LogLevel

this.PrintLine

Full Usage: this.PrintLine

Parameters:
Modifiers: abstract

Prints out a newline. If the optional log level lvl is provided, the newline is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

?lvl : LogLevel

this.PrintLine

Full Usage: this.PrintLine

Parameters:
Modifiers: abstract

Prints out the given OutString with newline. If the optional log level lvl is provided, the string is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

os : OutString
?lvl : LogLevel

this.PrintLine

Full Usage: this.PrintLine

Parameters:
Modifiers: abstract

Prints out the given ColoredString with newline. If the optional log level lvl is provided, the string is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

cs : ColoredString
?lvl : LogLevel

this.PrintLine

Full Usage: this.PrintLine

Parameters:
Modifiers: abstract

Prints out the given string with newline. If the optional log level lvl is provided, the string is printed only if the current log level is equal to or higher than lvl. By default, lvl is set to LogLevel.L2.

s : string
?lvl : LogLevel

this.PrintRow

Full Usage: this.PrintRow

Parameters:
Modifiers: abstract

Prints out a table row for the given OutString array of column values. This function only works if the current table configuration has the same number of columns as the length of the given OutString array.

arg0 : OutString[]

this.PrintRow

Full Usage: this.PrintRow

Parameters:
Modifiers: abstract

Prints out a table row for the given ColoredString array of column values. This function only works if the current table configuration has the same number of columns as the length of the given ColoredString array.

arg0 : ColoredString[]

this.PrintRow

Full Usage: this.PrintRow

Parameters:
    arg0 : string[]

Modifiers: abstract

Prints out a table row for the given string array of column values. This function only works if the current table configuration has the same number of columns as the length of the given string array.

arg0 : string[]

this.SetLogLevel

Full Usage: this.SetLogLevel

Parameters:
Modifiers: abstract

Sets the current log level of the printer. The printer will only print out messages with log level equal to or lower than the current log level. By default, the log level is set to LogLevel.L2.

arg0 : LogLevel

this.TableConfig

Full Usage: this.TableConfig

Returns: TableConfig
Modifiers: abstract

Returns the current table configuration.

Returns: TableConfig

Static members

Static member Description

pr <=/ oss

Full Usage: pr <=/ oss

Parameters:

Prints out the given OutString array as a table row.

pr : IPrinter
oss : OutString[]

pr <=/ css

Full Usage: pr <=/ css

Parameters:

Prints out the given ColoredString array as a table row.

pr : IPrinter
css : ColoredString[]

pr <=/ strs

Full Usage: pr <=/ strs

Parameters:

Prints out the given string array as a table row.

pr : IPrinter
strs : string[]

pr <=/ cs

Full Usage: pr <=/ cs

Parameters:

Prints out the given ColoredString with newline.

pr : IPrinter
cs : ColoredString

pr <=/ os

Full Usage: pr <=/ os

Parameters:

Prints out the given OutString with newline.

pr : IPrinter
os : OutString

pr <=/ s

Full Usage: pr <=/ s

Parameters:

Prints out the given string with newline.

pr : IPrinter
s : string

pr <== oss

Full Usage: pr <== oss

Parameters:
Returns: IPrinter

Prints out the given OutString array as a table row and returns the printer itself. This operator is useful for chaining multiple printing operations.

pr : IPrinter
oss : OutString[]
Returns: IPrinter

pr <== css

Full Usage: pr <== css

Parameters:
Returns: IPrinter

Prints out the given ColoredString array as a table row and returns the printer itself. This operator is useful for chaining multiple printing operations.

pr : IPrinter
css : ColoredString[]
Returns: IPrinter

pr <== strs

Full Usage: pr <== strs

Parameters:
Returns: IPrinter

Prints out the given string array as a table row and returns the printer itself. This operator is useful for chaining multiple printing operations.

pr : IPrinter
strs : string[]
Returns: IPrinter

pr <== cs

Full Usage: pr <== cs

Parameters:
Returns: IPrinter

Prints out the given ColoredString with newline and returns the printer itself. This operator is useful for chaining multiple printing operations.

pr : IPrinter
cs : ColoredString
Returns: IPrinter

pr <== os

Full Usage: pr <== os

Parameters:
Returns: IPrinter

Prints out the given OutString with newline and returns the printer itself. This operator is useful for chaining multiple printing operations.

pr : IPrinter
os : OutString
Returns: IPrinter

pr <== s

Full Usage: pr <== s

Parameters:
Returns: IPrinter

Prints out the given string with newline and returns the printer itself. This operator is useful for chaining multiple printing operations.

pr : IPrinter
s : string
Returns: IPrinter

pr <=? cs

Full Usage: pr <=? cs

Parameters:

Prints out the given ColoredString as an error message.

pr : IPrinter
cs : ColoredString

pr <=? os

Full Usage: pr <=? os

Parameters:

Prints out the given OutString as an error message.

pr : IPrinter
os : OutString

pr <=? s

Full Usage: pr <=? s

Parameters:

Prints out the given string as an error message.

pr : IPrinter
s : string

Type something to start searching.