/// <summary> /// Update the current io /// </summary> /// <param name="io">IO</param> public void Flush(IIOCommandLayer io) { if (io != null) { io.SetCursorPosition(CursorX, CursorY); } }
/// <summary> /// Constructor /// </summary> /// <param name="io">Input/Output</param> public CommandLayer(IIOCommandLayer io) { _IO = io; io.CancelKeyPress += Console_CancelKeyPress; PromptCharacter = "> "; }