|
The Java-Readline Library, Version 0.8.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttest.ReadlineTest
public class ReadlineTest
ReadlineTest.java This class shows the usage of the readline wrapper. It will read lines from standard input using the GNU-Readline library. You can use the standard line editing keys. You can also define application specific keys. Put this into your ~/.inputrc (or into whatever file $INPUTRC points to) and see what happens if you press function keys F1 to F3:
$if ReadlineTest "\e[11~": "linux is great" "\e[12~": "jikes is cool" "\e[13~": "javac is slow" $endifIf one argument is given to ReadlineTest, a private initialization file is read. If a second argument is given, the appropriate library is loaded.
| Constructor Summary | |
|---|---|
ReadlineTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main entry point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadlineTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
|
The Java-Readline Library, Version 0.8.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||