Console IsActive Property Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Terminal
Assembly: DeltaEngine.Scenes.Terminal (in DeltaEngine.Scenes.Terminal.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public override bool IsActive { get; set; }

Property Value

Type: Boolean
Remarks

Tests: DeltaEngine.Scenes.Terminal.Tests.ConsoleTests
Examples

1 unit tests call DeltaEngine.Scenes.Terminal.Console.IsActive
[Test, CloseAfterFirstFrame]
public void PressingF12Inactivates()
{
    if (keyboard == null)
        return; //ncrunch: no coverage
    PressKey(Key.F12);
    Assert.IsFalse(console.IsActive);
    Assert.IsFalse(console.history.IsActive);
    Assert.IsFalse(console.command.IsActive);
    Assert.IsFalse(console.autoCompletions.IsActive);
}
See Also