Click or drag to resize
DigitalRuneIConsole Interface
Represents an interactive console for debugging.

Namespace: DigitalRune.Game.UI.Consoles
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public interface IConsole

The IConsole type exposes the following members.

Methods
  NameDescription
Public methodClear
Clears the console.
Public methodWriteLine
Writes an empty line in the console.
Public methodWriteLine(String)
Writes a line of text in the console.
Top
Properties
  NameDescription
Public propertyInterpreter
Gets the default command interpreter.
Public propertyPrompt
Gets or sets the prompt text.
Top
Events
  NameDescription
Public eventCommandEntered
Event raised after a command was entered.
Top
Remarks

If the user enters a command, the CommandEntered event is raised. If this event is not handled (see Handled), the Interpreter handles the command.

To add new commands, you can either handle the CommandEntered event, or add new commands to the Interpreter (see Commands).

See Also