private void WritePromptIfNeeded()
{
if (_cursorController.IsStartOfInput() && _console.CursorLeft == 0)
{
var color = _console.ForegroundColor;
ForegroundColor = PromptColor;
Write(Prompt);
_console.ForegroundColor = color;
LineStart.CursorLeft = _console.CursorLeft;
LineEnd.CursorLeft = _console.CursorLeft;
}
}