Class ConsoleInputHistory
Utility for caching and navigating recently executed console commands.
Inheritance
ConsoleInputHistory
Assembly: Assembly-CSharp.dll
Syntax
public class ConsoleInputHistory
Constructors
|
Improve this Doc
View Source
ConsoleInputHistory(Int32)
Declaration
public ConsoleInputHistory(int maxCapacity)
Parameters
Type |
Name |
Description |
Int32 |
maxCapacity |
|
Fields
|
Improve this Doc
View Source
maxCapacity
Declaration
Field Value
Methods
|
Improve this Doc
View Source
AddNewInputEntry(String)
Add a new input entry to the input history.
Declaration
public void AddNewInputEntry(string input)
Parameters
Type |
Name |
Description |
String |
input |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Navigate(Boolean)
Navigates up or down the input history
Declaration
public string Navigate(bool up)
Parameters
Returns
Type |
Description |
String |
The navigated-to input entry
|