Class WrappedWriter
Wrapped writer similar to less and more commands on Unix
Inheritance
Namespace: Terminaux.Writer.ConsoleWriters
Assembly: Terminaux.dll
Syntax
public static class WrappedWriter
  Methods
| Edit this page View SourceWriteWrapped(string, bool, params object?[]?)
Writes the text in a pager similar to less and more commands on Unix
Declaration
public static void WriteWrapped(string text, bool force = false, params object?[]? args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | text | Text to write. If it's shorter than the console height, it just prints the text  | 
      
| bool | force | Forces the text viewer to open, even if the text doesn't exceed the console height  | 
      
| object[] | args | Arguments to format the text  | 
      
WriteWrapped(string, Color, bool, params object?[]?)
Writes the text in a pager similar to less and more commands on Unix
Declaration
public static void WriteWrapped(string text, Color color, bool force = false, params object?[]? args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | text | Text to write. If it's shorter than the console height, it just prints the text  | 
      
| Color | color | A color that will be changed to.  | 
      
| bool | force | Forces the text viewer to open, even if the text doesn't exceed the console height  | 
      
| object[] | args | Arguments to format the text  | 
      
WriteWrapped(string, Color, Color, bool, params object?[]?)
Writes the text in a pager similar to less and more commands on Unix
Declaration
public static void WriteWrapped(string text, Color foregroundColor, Color backgroundColor, bool force = false, params object?[]? args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | text | Text to write. If it's shorter than the console height, it just prints the text  | 
      
| Color | foregroundColor | A foreground color that will be changed to.  | 
      
| Color | backgroundColor | A background color that will be changed to.  | 
      
| bool | force | Forces the text viewer to open, even if the text doesn't exceed the console height  | 
      
| object[] | args | Arguments to format the text  |