3435363738394041424344
@Override protected Object doExecute() throws Exception { History history = (History) session.get(".jline.history"); if (history != null && clear) { history.clear(); } for (History.Entry element : history) { System.out.println( Ansi.ansi()
661662663664665666667668669670671
public void testSearch() throws Exception { /* * Tests the "/" forward search */ History history = console.getHistory(); history.clear(); history.add("aaadef"); history.add("bbbdef"); history.add("cccdef"); /*
726727728729730731732733734735736
assertLine("Xcccdef", b, false); /* * The previous test messed with history. */ history.clear(); history.add("aaadef"); history.add("bbbdef"); history.add("cccdef"); /*