public void LoadContent(Console console) { Console = console; Console.FontChanged += (s, e) => { CalculateInputPrefixWidth(); _inputBuffer.Font = console.Font; SetDirty(); }; _inputBuffer.Font = console.Font; Console.WindowAreaChanged += (s, e) => SetDirty(); Caret.Moved += (s, e) => SetDirty(); CalculateInputPrefixWidth(); Caret.LoadContent(this); RepeatingInput.LoadContent(this); InputHistory.LoadContent(this); Autocompletion.LoadContent(this); CopyPasting.LoadContent(this); Movement.LoadContent(this); Tabbing.LoadContent(this); Deletion.LoadContent(this); CommandExecution.LoadContent(this); CaseSenitivity.LoadContent(this); Selection.LoadContent(this); _loaded = true; }
public void ProcessSymbol(Symbol symbol) { if (Selection.HasSelection) { Remove(Selection.SelectionStart, Selection.SelectionLength); } Append(CaseSenitivity.ProcessSymbol(symbol)); InputHistory.OnSymbol(symbol); }
public void ProcessAction(ConsoleAction action) { InputHistory.OnAction(action); Autocompletion.OnAction(action); CopyPasting.OnAction(action); Movement.OnAction(action); Tabbing.OnAction(action); Deletion.OnAction(action); CommandExecution.OnAction(action); CaseSenitivity.OnAction(action); }