public ConsoleEntry PreviousCommand()
        {
            ConsoleEntry cmd;

            if (CurrentCommand != null)
            {
                cmd            = CurrentCommand?.Value;
                CurrentCommand = CurrentCommand.PreviousOrLast();
            }
            else
            {
                CurrentCommand = CommandsCache.Last;
                cmd            = CurrentCommand?.Value;
            }

            return(cmd);
        }