Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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);
 }