public void WriteToCurrentLine(string message)
        {
            foreach (var character in message)
            {
                switch (character)
                {
                case '\b':
                    _terminal.Backspace();
                    _formatter.Backspace();
                    break;

                case '\n':
                    _client.Request(_sanitizer.Sanitize(_terminal.GetCurrentLine()));
                    _terminal.WriteCurrentLine(TerminalStyle.Command);
                    RewriteConsole();
                    break;

                default:
                    _terminal.AppendToCurrentLine(character);
                    break;
                }
            }
        }