test
Class TestCompleter
- ReadlineCompleter
public class TestCompleter
extends java.lang.Object
This class is a sample custom completer. If you press the TAB-key at
the readline prompt, you will see the two possible completions ("Linux"
and "Tux"). Once you have entered a "L" or a "T", you will only see
the respective single possible completion. In any other case, null is
returned to signal that no (more) completions are available.
String | completer(String t, int s) - Return possible completion.
|
TestCompleter
public TestCompleter()
Default constructor.
completer
public String completer(String t,
int s)
Return possible completion. Implements org.gnu.readline.ReadlineCompleter.
- completer in interface ReadlineCompleter
| The Java-Readline Library, Version 0.8.0 |
Released under the LGPL, (c) Bernhard Bablok, Henner Zeller 1998-2002
Homepage: http://java-readline.sourceforge.net/