Show / Hide Table of Contents

Class ConsoleInputHistory

Utility for caching and navigating recently executed console commands.

Inheritance
Object
ConsoleInputHistory
Namespace: Wenzil.Console
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
public int maxCapacity
Field Value
Type Description
Int32

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
public void Clear()
| Improve this Doc View Source

Navigate(Boolean)

Navigates up or down the input history

Declaration
public string Navigate(bool up)
Parameters
Type Name Description
Boolean up
Returns
Type Description
String

The navigated-to input entry

  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • ConsoleInputHistory(Int32)
  • Fields
    • maxCapacity
  • Methods
    • AddNewInputEntry(String)
    • Clear()
    • Navigate(Boolean)
Back to top Generated by DocFX