/// <summary> /// The event handler for OnDataReceive. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void FicsClient_OnDataReceive(object sender, DataReceivedEventArgs e) { // FICS can sometimes send text with false '$' character which can cause exception due to // unrecognised color symbol. var textWithoutFalseColorSymbols = e.Text.Replace("$", ""); _consoleManager.WriteLine($"$R{FICSConstants.ReceivePrefix}: $c{textWithoutFalseColorSymbols}"); _textLogger.WriteLine($"{FICSConstants.ReceivePrefix}: {e.Text}"); _ficsMode.ProcessMessage(e.Text); }
/// <summary> /// Writes empty line to the user console. /// </summary> public void WriteLine() { _colorfulConsole.WriteLine(); }