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

OnBackspaceHit() private method

private OnBackspaceHit ( ) : void
return void
        private void OnBackspaceHit()
        {
            var textAfterInput = ReadFromCursorToEndOfInput();

            _cursorController.MoveCursorBackward();
            var returnPoint = _cursorController.CreateCursorReturnPoint();
            _console.WriteAtCursorAndMove(' ');
            returnPoint();
            Write(textAfterInput, false);
            returnPoint();
            _cursorController.MoveLineMarkerBackward();
        }