Logo Search packages:      
Sourcecode: jline version File versions  Download package

final boolean jline::ConsoleReader::moveHistory ( final boolean  next  )  throws IOException [inline, private]

Move up or down the history tree.

direction less than 0 to move up the tree, down otherwise

Definition at line 657 of file ConsoleReader.java.

References jline::History::current(), jline::History::next(), jline::History::previous(), and setBuffer().

Referenced by readLine().

            if (next && !history.next ())
               return false;
            else if (!next && !history.previous ())
                  return false;     

            setBuffer (history.current ());
            return true;

Generated by  Doxygen 1.6.0   Back to index