IrcShark.Extensions.Terminal.History.Next C# (CSharp) Method

Next() public method

Moves the cursor to the next item if possible, and returns it.
public Next ( ) : string
return string
        public string Next()
        {
            if (!NextAvailable ())
                return null;

            cursor = (cursor + 1) % history.Length;
            return history [cursor];
        }