Метод | Описание | |
---|---|---|
Backspace ( int count = 1, bool doNotRemoveOutput = false ) : void |
Enters a backspace to console to remove the last charactor.
|
|
BackspaceToBeginning ( ) : void |
Enters backspaces to console to remove the charactors to the beginning of the line.
|
|
Clear ( RelativeAreas area ) : void |
Removes the specific area.
|
|
IsBlockOutputOnly ( IConsoleTextCreator instance ) : bool |
Tests if the output of the instance always contain a line terminator.
|
|
MoveCursorBy ( int x, int y ) : void |
Moves cursor by a specific relative position.
|
|
MoveCursorTo ( int x, int y ) : void |
Moves cursor at a specific position in buffer.
|
|
ReadKey ( bool intercept = false ) : ConsoleKeyInfo, |
Obtains the next character or function key pressed by the user. The pressed key is optionally displayed in the console window.
|
|
ReadLine ( ) : string |
Reads the next line of characters from the standard input stream.
|
|
ReadPassword ( ) : SecureString, |
Obtains the password pressed by the user.
|
|
ReadPassword ( ConsoleColor? foreground, char? replaceChar, bool inline = false ) : SecureString, |
Obtains the password pressed by the user.
|
|
ReadPassword ( char replaceChar, bool inline = false ) : SecureString, |
Obtains the password pressed by the user.
|
Метод | Описание | |
---|---|---|
BackspaceInternal ( int count = 1, int keepLevel ) : void |
Enters a backspace to console to remove the last charactor.
|
|
ClearInCmd ( RelativeAreas area ) : void | ||
ReadLine ( ConsoleColor? foreground, SecureString, str, char? replaceChar, bool inline = false ) : void | ||
TestMode ( ) : void |
public Backspace ( int count = 1, bool doNotRemoveOutput = false ) : void | ||
count | int | The count of the charactor to remove from end. |
doNotRemoveOutput | bool | true if just only move cursor back and keep output; otherwise, false. |
Результат | void |
public Clear ( RelativeAreas area ) : void | ||
area | RelativeAreas | The area to remove. |
Результат | void |
public static IsBlockOutputOnly ( IConsoleTextCreator instance ) : bool | ||
instance | IConsoleTextCreator | The instance of the console handler wrapper. |
Результат | bool |
public MoveCursorBy ( int x, int y ) : void | ||
x | int | The horizontal translation size. |
y | int | The vertical translation size. |
Результат | void |
public MoveCursorTo ( int x, int y ) : void | ||
x | int | Column (zero-based), the left from the edge of buffer. |
y | int | Row (zero-based) the top from the edge of buffer; or -1 if do not move. |
Результат | void |
public ReadKey ( bool intercept = false ) : ConsoleKeyInfo, | ||
intercept | bool | Determines whether to display the pressed key in the console window. true to not display the pressed key; otherwise, false. |
Результат | ConsoleKeyInfo, |
public ReadPassword ( ConsoleColor? foreground, char? replaceChar, bool inline = false ) : SecureString, | ||
foreground | ConsoleColor? | The replace charactor color. |
replaceChar | char? | The optional charactor to output to replace the original one, such as *. |
inline | bool | true if do not follow the line terminator after typing the password; otherwise, false. |
Результат | SecureString, |
public ReadPassword ( char replaceChar, bool inline = false ) : SecureString, | ||
replaceChar | char | The optional charactor to output to replace the original one, such as *. |
inline | bool | true if do not follow the line terminator after typing the password; otherwise, false. |
Результат | SecureString, |