ShellMe.CommandLine.Console.LowLevel.LowLevelToAbstractConsoleAdapter.WritePromptIfNeeded C# (CSharp) Method

WritePromptIfNeeded() private method

private WritePromptIfNeeded ( ) : void
return void
        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;
            }
        }