public void Delete(int count)
        {
            if (count == 0)
            {
                return;
            }

            _line.Delete(count);
            if (count < 0)
            {
                _consoleCursor.Move(count);
            }

            _hasChanges = true;
        }
Ejemplo n.º 2
0
        public void Delete(int count)
        {
            if (count == 0)
            {
                return;
            }

            _line.Delete(count);

            if (count < 0)
            {
                _consoleCursor.Move(count);
                count = -count;
            }

            if (Position != Length)
            {
                string tail = ToString(Position);
                _console.Write(tail);
            }
            _console.Write(' ', count);
            _consoleCursor.Move(Position - Length - count);
        }
Ejemplo n.º 3
0
        public void Delete(int count)
        {
            if (count == 0)
            {
                return;
            }

            _line.Delete(count);

            int diff = Length - Position;

            if (count < 0)
            {
                count = -count;
                _consoleCursor.Move(diff - count);
            }
            else
            {
                _consoleCursor.Move(diff);
            }
            _console.Write(' ', count);
            _consoleCursor.Move(-diff - count);
        }