--- libreadline-java-0.8.0.1.orig/Makefile +++ libreadline-java-0.8.0.1/Makefile @@ -86,10 +86,10 @@ world : jar build-native jar: build-java - cd $(BUILDDIR) ; jar -cvmf ../$(MF_STUB) ../$(JAR) * + cd $(BUILDDIR) ; fastjar -cvf ../$(JAR) org $(JAR): - cd $(BUILDDIR) ; jar -cvmf ../$(MF_STUB) ../$(JAR) * + cd $(BUILDDIR) ; fastjar -cvf ../$(JAR) org build-java: $(BUILDDIR) cd src ; $(MAKE) JAVAC="$(JAVAC)" JC_FLAGS="$(JC_FLAGS)" java --- libreadline-java-0.8.0.1.orig/debian/rules +++ libreadline-java-0.8.0.1/debian/rules @@ -0,0 +1,108 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +jarname = libreadline-java +jarversion = 0.8.0 +libnames = libJavaReadline.so libJavaEditline.so +libmajor = 1 +libversion = 1.0.0 + +tmp = debian/tmp +javadir = $(tmp)/usr/share/java +classdir = org/gnu/readline +egdir = debian/libreadline-java-doc/usr/share/doc/libreadline-java-doc/examples + +INSTALL_DIR = install -p -d -o root -g root -m 755 +INSTALL_FILE = install -p -o root -g root -m 644 + +# Set java options according to which compiler is present. + +BUILDDIR=$(shell pwd)/build + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) JAVAC=gcj JC_FLAGS=-C CC=gcc \ + JAVAINCLUDE=/usr/lib/jvm/default-java/include \ + JAVANATINC=/usr/lib/jvm/default-java/include \ + T_LIBS="JavaReadline JavaEditline" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) clean + rm -f lib*.so* + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Install the shared libraries. + $(INSTALL_DIR) $(tmp)/usr/lib/jni + for i in $(libnames); do \ + $(INSTALL_FILE) $$i $(tmp)/usr/lib/jni; \ + done + + # Install the jar. + $(INSTALL_DIR) $(javadir) + $(INSTALL_FILE) libreadline-java.jar $(javadir)/$(jarname)-$(jarversion).jar + + # Link the unversioned jar to the versioned jar. + ln -s $(jarname)-$(jarversion).jar $(javadir)/$(jarname).jar + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_movefiles -i + dh_installdocs -i + dh_installexamples -i + # Tidy up the examples directory. + rm $(egdir)/test/Makefile + mv $(egdir)/libreadline-java-doc.README.test $(egdir)/README.test + dh_installmenu -i + dh_installchangelogs -plibreadline-java-doc ChangeLog + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i + #dh_makeshlibs -i + dh_installdeb -i + #dh_perl -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_movefiles -a + dh_installdocs -a + dh_installexamples -a + dh_installmenu -a + dh_installchangelogs -plibreadline-java ChangeLog + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a +# dh_perl -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libreadline-java-0.8.0.1.orig/debian/changelog +++ libreadline-java-0.8.0.1/debian/changelog @@ -0,0 +1,217 @@ +libreadline-java (0.8.0.1-8.2build1) lucid; urgency=low + + * No-change rebuild against libreadline6. + + -- Martin Pitt Mon, 08 Mar 2010 14:52:01 +0100 + +libreadline-java (0.8.0.1-8.2) unstable; urgency=low + + * Non-maintainer upload + * also include /usr/lib/jvm/default-java/include/linux (closes: #559991) + + -- Rene Engelhard Fri, 22 Jan 2010 21:46:59 +0100 + +libreadline-java (0.8.0.1-8.1) unstable; urgency=low + + * Non-maintainer upload. + * Build-depend on default-jdk-builddep, not building anymore on arm, alpha, hppa. + Closes: #477885. + + -- Matthias Klose Sat, 10 May 2008 16:07:57 +0200 + +libreadline-java (0.8.0.1-8) unstable; urgency=low + + * Change from using gcjh to gjavah, since gcjh has been removed + (closes: #423992). + * Switched from setting $DH_COMPAT to using debian/compat instead. + * Removed blank lines from the end of the doc-base file, which seem to be + confusing lintian. + * Bump standards-version to 3.7.2.2 (no changes required). + + -- Ben Burton Sat, 19 May 2007 15:37:47 +1000 + +libreadline-java (0.8.0.1-7.1) unstable; urgency=low + + * Non-maintainer upload. + * Drop Build-Depends on libgcj-dev. (Closes: #359737) + + -- Mohammed Adnène Trojette Sat, 5 Aug 2006 20:11:01 +0200 + +libreadline-java (0.8.0.1-7) unstable; urgency=low + + * Build-depends on java-gcj-compat-dev, so that the recently relocated + jni.h can be found (closes: #371060). + + -- Ben Burton Thu, 8 Jun 2006 08:19:38 +1000 + +libreadline-java (0.8.0.1-6) unstable; urgency=low + + * Rebuilt using gcj-4.1; updated build scripts to reflect the new locations + of JNI headers, updated build-depends accordingly. + * Switched to DH_COMPAT=5 and updated build-depends accordingly. + * Updated standards-version to 3.7.2.0 (no changes required). + + -- Ben Burton Wed, 7 Jun 2006 07:49:43 +1000 + +libreadline-java (0.8.0.1-5) unstable; urgency=low + + * Rebuilt against libreadline5 (closes: #326334). Build-depends on + libreadline4-dev changed to (libreadline5-dev | libreadline-dev). + * Bumped standards-version to 3.6.2.1 (no changes required). + + -- Ben Burton Sat, 3 Sep 2005 13:14:46 +1000 + +libreadline-java (0.8.0.1-4) unstable; urgency=low + + * Now that libgcj-dev is a real package that depends on a compatible gcj, + we can change the build-depends to use gcj and libgcj-dev + (instead of gcj-3.3 and libgcj4-dev) without risk of unwanted version + skew. This allows libreadline-java to be built on archs such as ppc64 + that only support gcc-4.0 (closes: #300353). + * Use a versioned build-depends on libgcj-dev to make sure we get the real + libgcj-dev and not the virtual one. Add a similar version on the gcj + build-depends also. + * Add a real alternative (w3m) to www-browser for libreadline-java-doc. + + -- Ben Burton Tue, 26 Apr 2005 07:48:31 +1000 + +libreadline-java (0.8.0.1-3) unstable; urgency=low + + * Allow libreadline-java to depend on either java1-runtime or java2-runtime, + since it doesn't use any deprecated java1 methods (closes: #297552). + * Build-depend on gcj-3.3 instead of gcj, so we don't get a version skew + between gcj and libgcj4-dev when the default gcj is upgraded. + + -- Ben Burton Fri, 18 Mar 2005 07:53:04 +1100 + +libreadline-java (0.8.0.1-2) unstable; urgency=low + + * Added build-depends on libgcj4-dev, which gcj no longer drags in on its + own (closes: #240264). + * Bumped standards-version to 3.6.1. + + -- Ben Burton Fri, 2 Apr 2004 23:07:54 +1000 + +libreadline-java (0.8.0.1-1) unstable; urgency=low + + * Added changes from development CVS to implement getVar() and setVar(), + which are required for proper integration with jython (see #184838 + for details). Also enhanced these routines for compatibility with + BSD editline. + * Bumped the upstream source version to make it clear that new + functionality has been added. + + -- Ben Burton Wed, 27 Aug 2003 13:50:38 +1000 + +libreadline-java (0.8.0-2) unstable; urgency=low + + * Uses default gcj, not gcj-3.2 (closes: #201454). + * Bumped standards-version to 3.6.0. + * Installs JNI module in /usr/lib/jni according to java policy. + + -- Ben Burton Tue, 19 Aug 2003 16:42:36 -0500 + +libreadline-java (0.8.0-1) unstable; urgency=low + + * New upstream release. + * Added defaults for virtual package dependencies. + * Minor changes for command-line in README.test. + * New maintainer email address. + * Bumped standards-version to 3.5.8. + + -- Ben Burton Wed, 29 Jan 2003 12:31:02 +1100 + +libreadline-java (0.7.3-2) unstable; urgency=low + + * Implement getHistory() manually under Editline instead of using the + underlying history_list() call which libedit does not support + (closes: Bug#166091). + + -- Ben Burton Thu, 24 Oct 2002 09:29:29 +1000 + +libreadline-java (0.7.3-1) unstable; urgency=high + + * New upstream release. + * Now builds using gcj-3.2 since this is available for enough architectures. + * Updated to reflect latest java policy. + * Moved examples from libreadline-java to libreadline-java-doc. + * Bumped standards-version to 3.5.7. + + -- Ben Burton Thu, 3 Oct 2002 16:36:21 +1000 + +libreadline-java (0.7.0-2) unstable; urgency=high + + * Updated build procedure to reflect relocation of kaffe bootstrap classes. + Now either location should be fine. + * Modified build-depends to ensure we're not building under a broken jikes. + + -- Ben Burton Fri, 19 Apr 2002 20:17:45 +1000 + +libreadline-java (0.7.0-1) unstable; urgency=low + + * New upstream release. + + -- Ben Burton Mon, 11 Feb 2002 14:47:23 +1100 + +libreadline-java (0.6-1) unstable; urgency=low + + * New upstream release. + * Merged libeditline-java and libreadline-java into a single package. + + -- Ben Burton Sun, 9 Dec 2001 10:11:21 -0600 + +libreadline-java (0.5-8) unstable; urgency=low + + * Build uses gcj over kaffe when both are available. + + -- Ben Burton Wed, 7 Nov 2001 19:40:05 -0600 + +libreadline-java (0.5-7) unstable; urgency=low + + * Changed package name to conform to new java policy. + * Now builds with either gcj or kaffe since neither compiler is + provided for all architectures. + + -- Ben Burton Sat, 27 Oct 2001 13:24:22 -0500 + +lib-readline-java (0.5-6) unstable; urgency=low + + * Builds using gcj instead of jikes and kaffe. + + -- Ben Burton Sat, 13 Oct 2001 18:39:43 -0500 + +lib-readline-java (0.5-5) unstable; urgency=low + + * Split API docs into separate package lib-readline-java-doc that + lib-editline-java can refer to also. + * Tidied up in debian/. + + -- Ben Burton Fri, 31 Aug 2001 15:25:31 -0500 + +lib-readline-java (0.5-4) unstable; urgency=low + + * Cleaned up debian/rules. + + -- Ben Burton Mon, 13 Aug 2001 15:27:09 +1000 + +lib-readline-java (0.5-3) unstable; urgency=low + + * Upped standards-version to 3.5.6. + + -- Ben Burton Sun, 5 Aug 2001 10:07:00 +1000 + +lib-readline-java (0.5-2) unstable; urgency=low + + * Updated copyright file to note that the underlying libreadline is GPLed. + + -- Ben Burton Mon, 2 Jul 2001 10:39:07 -0500 + +lib-readline-java (0.5-1) unstable; urgency=low + + * Initial Release (closes: Bug#102928). + + -- Ben Burton Sat, 30 Jun 2001 18:03:06 -0500 + +Local variables: +mode: debian-changelog +End: --- libreadline-java-0.8.0.1.orig/debian/libreadline-java-doc.examples +++ libreadline-java-0.8.0.1/debian/libreadline-java-doc.examples @@ -0,0 +1,3 @@ +build/test +src/test +debian/libreadline-java-doc.README.test --- libreadline-java-0.8.0.1.orig/debian/libreadline-java-doc.README.test +++ libreadline-java-0.8.0.1/debian/libreadline-java-doc.README.test @@ -0,0 +1,26 @@ +libreadline-java Examples +------------------------- + +The class test.ReadlineTest illustrates the usage of the Java readline +wrappers. See the API documentation for further details. + +To run this test, simply execute the class test.ReadlineTest (found +beneath this directory), making sure you have the readline wrappers +(/usr/share/java/libreadline-java-.jar) on your classpath. + +To explicitly force ReadlineTest to link with your choice of GNU readline, +BSD editline or pure Java (no readline/editline support), pass one of +the following three sets of command-line arguments respectively: + + /etc/inputrc GnuReadline + /etc/inputrc Editline + /etc/inputrc PureJava + +For example, running + + java -classpath .:/usr/share/java/libreadline-java.jar test.ReadlineTest \ + /etc/inputrc Editline + +from this directory will run ReadlineTest linked with BSD editline. + + -- Ben Burton , Wed, 29 Jan 2003 12:31:02 +1100 --- libreadline-java-0.8.0.1.orig/debian/libreadline-java.files +++ libreadline-java-0.8.0.1/debian/libreadline-java.files @@ -0,0 +1,2 @@ +usr/lib/jni +usr/share/java/libreadline-java*.jar --- libreadline-java-0.8.0.1.orig/debian/libreadline-java-doc.docs +++ libreadline-java-0.8.0.1/debian/libreadline-java-doc.docs @@ -0,0 +1,5 @@ +api-html +README +README.1st +NEWS +TODO --- libreadline-java-0.8.0.1.orig/debian/copyright +++ libreadline-java-0.8.0.1/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Ben Burton on +Sat, 30 Jun 2001 18:03:06 -0500. + +It was downloaded from http://java-readline.sourceforge.net/. + +Upstream Author: Bernhard Bablok + +Copyright: + +You are free to distribute this software under the terms of +the GNU Lesser General Public License. + +The Java wrappers provided by this package give you the option of +linking with either the GNU readline or the BSD editline libraries. Be +aware however that GNU readline is distributed under the terms of the +GNU General Public License, so any program using these wrappers that is +not GPL-compatible will need to initialise the wrapper classes to link +with BSD editline instead. + +On Debian systems, the complete texts of the GNU Lesser General Public +License and the GNU General Public License can be found in files +/usr/share/common-licenses/LGPL and /usr/share/common-licenses/GPL +respectively. --- libreadline-java-0.8.0.1.orig/debian/libreadline-java-doc.doc-base +++ libreadline-java-0.8.0.1/debian/libreadline-java-doc.doc-base @@ -0,0 +1,10 @@ +Document: libreadline-java-doc +Title: Java-Readline Library Documentation +Author: Bernhard Bablok +Abstract: This manual contains the API documentation for libreadline-java + which provides Java wrappers for GNU readline and BSD editline. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/libreadline-java-doc/api-html/index.html +Files: /usr/share/doc/libreadline-java-doc/api-html/*.html --- libreadline-java-0.8.0.1.orig/debian/libreadline-java-doc.README.Debian +++ libreadline-java-0.8.0.1/debian/libreadline-java-doc.README.Debian @@ -0,0 +1,15 @@ +libreadline-java documentation for Debian +----------------------------------------- + +The GNU readline and BSD editline wrappers are provided by debian package +libreadline-java. Package libreadline-java-doc contains the API +documentation for these wrapper classes and some examples of their usage. + +The API documentation can be found in the directory +/usr/share/doc/libreadline-java-doc/api-html/. + +The test classes, although described in the API documentation, are not +provided by libreadline-java. They can instead be found in the directory +/usr/share/doc/libreadline-java-doc/examples/. + + -- Ben Burton , Thu, 3 Oct 2002 16:36:21 +1000 --- libreadline-java-0.8.0.1.orig/debian/compat +++ libreadline-java-0.8.0.1/debian/compat @@ -0,0 +1 @@ +5 --- libreadline-java-0.8.0.1.orig/debian/libreadline-java.README.Debian +++ libreadline-java-0.8.0.1/debian/libreadline-java.README.Debian @@ -0,0 +1,17 @@ +libreadline-java for Debian +--------------------------- + +The GNU readline and BSD editline wrappers are stored in the archive +/usr/share/java/libreadline-java-.jar. + +The classes themselves can be found in package org.gnu.readline. + +The API documentation is in the debian package libreadline-java-doc, and +once installed can be found in /usr/share/doc/libreadline-java-doc/api-html/. + +Note that the test classes, although described in the API documentation, +are not included in the above jar. They can instead be found in the +directory /usr/share/doc/libreadline-java-doc/examples/, also provided +by debian package libreadline-java-doc. + + -- Ben Burton , Thu, 3 Oct 2002 16:36:21 +1000 --- libreadline-java-0.8.0.1.orig/debian/libreadline-java.docs +++ libreadline-java-0.8.0.1/debian/libreadline-java.docs @@ -0,0 +1,4 @@ +README +README.1st +NEWS +TODO --- libreadline-java-0.8.0.1.orig/debian/control +++ libreadline-java-0.8.0.1/debian/control @@ -0,0 +1,38 @@ +Source: libreadline-java +Section: libs +Priority: optional +Maintainer: Ben Burton +Build-Depends: debhelper (>= 5.0.0), fastjar, gcj (>= 4:4.1.0), default-jdk-builddep, libedit-dev, libreadline5-dev | libreadline-dev +Standards-Version: 3.7.2.2 + +Package: libreadline-java +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, gij | java1-runtime | java2-runtime +Suggests: libreadline-java-doc, java-virtual-machine +Conflicts: lib-readline-java (<< 0.5-7), lib-editline-java (<< 0.5-3), libeditline-java (<< 0.6) +Replaces: lib-readline-java (<< 0.5-7), lib-editline-java (<< 0.5-3), libeditline-java (<< 0.6) +Description: GNU readline and BSD editline wrappers for Java + Included is the Java package org.gnu.readline which provides the GNU + readline and BSD editline libraries for Java. Note that this is NOT a + pure Java implementation; it merely contains JNI wrappers for the standard + system libraries. + . + BSD editline resembles GNU readline but is under a more relaxed license. + In some cases it can be used as a drop-in replacement for GNU readline + when licensing issues prevent GNU readline from being used. + . + The API documentation and examples can be found in the debian package + libreadline-java-doc. + +Package: libreadline-java-doc +Architecture: all +Section: doc +Recommends: w3m | www-browser +Suggests: libreadline-java +Conflicts: lib-readline-java (<= 0.5-4), lib-readline-java-doc (<< 0.5-7) +Replaces: lib-readline-java-doc (<< 0.5-7) +Description: API docs for readline/editline wrappers for Java + This package provides the API documentation and examples for the + GNU readline and BSD editline wrappers for Java. The wrappers themselves + can be found in package libreadline-java. --- libreadline-java-0.8.0.1.orig/src/org/gnu/readline/Readline.java +++ libreadline-java-0.8.0.1/src/org/gnu/readline/Readline.java @@ -79,13 +79,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_LIBRARY_VERSION = new ReadlineConstString(0, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -95,13 +96,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_READLINE_NAME = new ReadlineConstString(1, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -127,13 +129,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_LINE_BUFFER = new ReadlineConstString(3, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -175,13 +178,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_BASIC_WORD_BREAK_CHARACTERS = new ReadlineConstString(6, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -191,13 +195,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_COMPLETER_WORD_BREAK_CHARACTERS = new ReadlineConstString(7, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -207,13 +212,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_COMPLETER_QUOTE_CHARACTERS = new ReadlineConstString(8, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -255,13 +261,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstString RL_SPECIAL_PREFIXES = new ReadlineConstString(11, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -398,13 +405,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt RL_POINT = new ReadlineConstInt(5, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -414,13 +422,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt RL_END = new ReadlineConstInt(6, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -654,13 +663,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt RL_COMPLETION_TYPE = new ReadlineConstInt(21, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -670,13 +680,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt RL_COMPLETION_APPEND_CHARACTER = new ReadlineConstInt(22, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -702,13 +713,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt RL_COMPLETION_QUERY_ITEMS = new ReadlineConstInt(24, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -750,13 +762,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt RL_INHIBIT_COMPLETION = new ReadlineConstInt(27, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -766,13 +779,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt HISTORY_BASE = new ReadlineConstInt(28, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** @@ -782,13 +796,14 @@

Supporting implementations:

  • GNU-Readline
  • +
  • Editline

*/ public final static ReadlineConstInt HISTORY_LENGTH = new ReadlineConstInt(29, new ReadlineLibrary[] - {ReadlineLibrary.GnuReadline}); + {ReadlineLibrary.GnuReadline, ReadlineLibrary.Editline}); /** --- libreadline-java-0.8.0.1.orig/src/native/Makefile +++ libreadline-java-0.8.0.1/src/native/Makefile @@ -44,7 +44,7 @@ LIB_EXT := dll CFLAGS=-DWIN32=$(WIN32) -D__IBMC__ else -INCLUDES = -I $(JAVAINCLUDE) -I $(JAVANATINC) +INCLUDES = -I $(JAVAINCLUDE) -I $(JAVAINCLUDE)/linux -I $(JAVANATINC) -I $(JAVANATINC)/linux LIBPATH = -L/usr/lib/termcap JavaReadline_LIBS = -lreadline -ltermcap -lhistory JavaEditline_LIBS = -ledit -ltermcap @@ -110,7 +110,7 @@ -c org_gnu_readline_Readline.c org_gnu_readline_Readline.h: $(BUILDDIR)/org/gnu/readline/Readline.class - javah -classpath $(BUILDDIR) -jni org.gnu.readline.Readline + gjavah -classpath $(BUILDDIR) -jni org.gnu.readline.Readline touch org_gnu_readline_Readline.h clean: --- libreadline-java-0.8.0.1.orig/src/native/org_gnu_readline_Readline.c +++ libreadline-java-0.8.0.1/src/native/org_gnu_readline_Readline.c @@ -70,6 +70,14 @@ static char* undefinedInternalString = NULL; static char undefinedInternalChar = '0'; +/* + * Some variables are available with editline but are not declared in + * the appropriate headers. + */ +#ifdef JavaEditline +extern int rl_inhibit_completion; +#endif + #ifdef JavaReadline static int* globalIntegerInternals[] = { &rl_readline_version, @@ -145,8 +153,8 @@ &undefinedInternalInt, /* &rl_readline_state, */ &undefinedInternalInt, /* &rl_editing_mode, */ &undefinedInternalInt, /* &rl_insert_mode, */ - &undefinedInternalInt, /* &rl_point, */ - &undefinedInternalInt, /* &rl_end, */ + &rl_point, + &rl_end, &undefinedInternalInt, /* &rl_mark, */ &undefinedInternalInt, /* &rl_done, */ &undefinedInternalInt, /* &rl_pending_input, */ @@ -161,34 +169,34 @@ &undefinedInternalInt, /* &rl_filename_completion_desired, */ &undefinedInternalInt, /* &rl_filename_quoting_desired, */ &undefinedInternalInt, /* &rl_attempted_completion_over, */ - &undefinedInternalInt, /* &rl_completion_type, */ - &undefinedInternalInt, /* &rl_completion_append_character, */ + &rl_completion_type, + &rl_completion_append_character, &undefinedInternalInt, /* &rl_completion_suppress_append, */ - &undefinedInternalInt, /* &rl_completion_query_items, */ + &rl_completion_query_items, &undefinedInternalInt, /* &rl_completion_mark_symlink_dirs, */ &undefinedInternalInt, /* &rl_ignore_completion_duplicates, */ - &undefinedInternalInt, /* &rl_inhibit_completion, */ + &rl_inhibit_completion, - &undefinedInternalInt, /* &history_base, */ - &undefinedInternalInt, /* &history_length, */ + &history_base, + &history_length, &undefinedInternalInt, /* &history_max_entries, */ &undefinedInternalInt, /* &history_quotes_inhibit_expansion, */ NULL }; static char** globalStringInternals[] = { - &undefinedInternalString, /* const &rl_library_version, */ - &undefinedInternalString, /* const &rl_readline_name, */ + /* const */ &rl_library_version, + /* const */ &rl_readline_name, &undefinedInternalString, /* &rl_prompt, */ - &undefinedInternalString, /* &rl_line_buffer, */ + &rl_line_buffer, &undefinedInternalString, /* const &rl_terminal_name, */ &undefinedInternalString, /* &rl_executing_macro, */ - &undefinedInternalString, /* const &rl_basic_word_break_characters, */ - &undefinedInternalString, /* const &rl_completer_word_break_characters, */ - &undefinedInternalString, /* const &rl_completer_quote_characters, */ + /* const */ &rl_basic_word_break_characters, + /* const */ &rl_completer_word_break_characters, + /* const */ &rl_completer_quote_characters, &undefinedInternalString, /* const &rl_basic_quote_characters, */ &undefinedInternalString, /* const &rl_filename_quote_characters, */ - &undefinedInternalString, /* const &rl_special_prefixes, */ + /* const */ &rl_special_prefixes, &undefinedInternalString, /* &history_word_delimiters, */ &undefinedInternalString, /* &history_no_expand_chars, */ @@ -814,14 +822,17 @@ /* save old value */ - oldValue = strdup(*(globalStringInternals[(int) jindex])); - if (!oldValue) { - jclass newExcCls; - newExcCls = (*env)->FindClass(env,"java/lang/OutOfMemoryError"); - if (newExcCls != NULL) - (*env)->ThrowNew(env,newExcCls,""); - return; - } + if (*(globalStringInternals[(int) jindex])) { + oldValue = strdup(*(globalStringInternals[(int) jindex])); + if (!oldValue) { + jclass newExcCls; + newExcCls = (*env)->FindClass(env,"java/lang/OutOfMemoryError"); + if (newExcCls != NULL) + (*env)->ThrowNew(env,newExcCls,""); + return; + } + } else + oldValue = NULL; /* read new value from argument */ @@ -847,9 +858,12 @@ /* return old value */ - ucs2utf(oldValue); - free(oldValue); - return (*env)->NewStringUTF(env,buffer); + if (oldValue) { + ucs2utf(oldValue); + free(oldValue); + return (*env)->NewStringUTF(env,buffer); + } else + return NULL; } /* -------------------------------------------------------------------------- */ --- libreadline-java-0.8.0.1.orig/src/test/ReadlineTest.java +++ libreadline-java-0.8.0.1/src/test/ReadlineTest.java @@ -114,7 +114,7 @@ String version = Readline.getVar(Readline.RL_LIBRARY_VERSION); System.out.println("Readline-Version: " + version); } catch (UnsupportedEncodingException enc) { - System.err.println("Could not query libarary version"); + System.err.println("Could not query library version"); System.exit(0); } --- libreadline-java-0.8.0.1.orig/api-html/constant-values.html +++ libreadline-java-0.8.0.1/api-html/constant-values.html @@ -0,0 +1,153 @@ + + + + + + +Constant Field Values (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+org.gnu.*
+ +

+ + + + + + + + + + + + +
org.gnu.readline.ReadlineReader
+public static final java.lang.StringDEFAULT_PROMPT""
+ +

+ +

+


+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/index-all.html +++ libreadline-java-0.8.0.1/api-html/index-all.html @@ -0,0 +1,546 @@ + + + + + + +Index (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +A B C D E G H I L M O P R S T W
+

+A

+
+
addToHistory(String) - +Static method in class org.gnu.readline.Readline +
Add a line to the in-memory history. +
+
+

+B

+
+
byName(String) - +Static method in class org.gnu.readline.ReadlineLibrary +
Return ReadlineLibrary-object with given name. +
+
+

+C

+
+
cleanup() - +Static method in class org.gnu.readline.Readline +
Reset the readline library and with it, the terminal. +
clearHistory() - +Static method in class org.gnu.readline.Readline +
Clear the history buffer. +
close() - +Method in class org.gnu.readline.ReadlineReader +
Nullifies all buffers and writes history file if one was given + at construction time. +
completer(String, int) - +Method in interface org.gnu.readline.ReadlineCompleter +
A generator function for filename completion in the general case. +
completer(String, int) - +Method in class test.TestCompleter +
Return possible completion. +
+
+

+D

+
+
DEFAULT_PROMPT - +Static variable in class org.gnu.readline.ReadlineReader +
  +
+
+

+E

+
+
Editline - +Static variable in class org.gnu.readline.ReadlineLibrary +
Constant for Editline implementation. +
+
+

+G

+
+
getCompleter() - +Static method in class org.gnu.readline.Readline +
Query current completer function. +
getEncoding() - +Static method in class org.gnu.readline.Readline +
Query current encoding of fallback BufferedReader. +
getHistory(Collection) - +Static method in class org.gnu.readline.Readline +
Get the history buffer in a supplied Collection. +
getHistoryLine(int) - +Static method in class org.gnu.readline.Readline +
Get the specified entry from the history buffer. +
getHistorySize() - +Static method in class org.gnu.readline.Readline +
Get the size, in elements (lines), of the history buffer. +
Getline - +Static variable in class org.gnu.readline.ReadlineLibrary +
Constant for Getline implementation. +
getLineBuffer() - +Static method in class org.gnu.readline.Readline +
Query the current line buffer. +
getName() - +Method in class org.gnu.readline.ReadlineLibrary +
Query name of backing library. +
getPrompt() - +Method in class org.gnu.readline.ReadlineReader +
Returns the current prompt. +
getThrowExceptionOnUnsupportedMethod() - +Static method in class org.gnu.readline.Readline +
Query behavior in case an unsupported method is called. +
getVar(ReadlineConstInt) - +Static method in class org.gnu.readline.Readline +
Query integer readline-variable. +
getVar(ReadlineConstString) - +Static method in class org.gnu.readline.Readline +
Query string readline-variable. +
getWordBreakCharacters() - +Static method in class org.gnu.readline.Readline +
Query word break characters. +
GnuReadline - +Static variable in class org.gnu.readline.ReadlineLibrary +
Constant for GNU-Readline implementation. +
+
+

+H

+
+
hasTerminal() - +Static method in class org.gnu.readline.Readline +
Return if we have a terminal. +
HISTORY_BASE - +Static variable in class org.gnu.readline.Readline +
Constant to access history_base using + getVar() or setVar(). +
HISTORY_LENGTH - +Static variable in class org.gnu.readline.Readline +
Constant to access history_length using + getVar() or setVar(). +
HISTORY_MAX_ENTRIES - +Static variable in class org.gnu.readline.Readline +
Constant to access history_max_entries using + getVar() or setVar(). +
HISTORY_NO_EXPAND_CHARS - +Static variable in class org.gnu.readline.Readline +
Constant to access history_no_expand_chars using + getVar() or setVar(). +
HISTORY_QUOTES_EXPANSION - +Static variable in class org.gnu.readline.Readline +
Constant to access history_quotes_inhibit_expansion using + getVar() or setVar(). +
HISTORY_SEARCH_DELIMITERS - +Static variable in class org.gnu.readline.Readline +
Constant to access history_search_delimiter_chars using + getVar() or setVar(). +
HISTORY_WORD_DELIMITERS - +Static variable in class org.gnu.readline.Readline +
Constant to access history_word_delimiters using + getVar() or setVar(). +
+
+

+I

+
+
initReadline(String) - +Static method in class org.gnu.readline.Readline +
Initialize the GNU-Readline library. +
+
+

+L

+
+
load(ReadlineLibrary) - +Static method in class org.gnu.readline.Readline +
Load an implementing backing library. +
+
+

+M

+
+
main(String[]) - +Static method in class org.gnu.readline.ReadlineReader +
  +
main(String[]) - +Static method in class test.ReadlineTest +
Main entry point. +
+
+

+O

+
+
org.gnu.readline - package org.gnu.readline
 
+
+

+P

+
+
parseAndBind(String) - +Static method in class org.gnu.readline.Readline +
Parse argument string as if it had been read from `inputrc' file + and perform key bindings and variable assignments found. +
PureJava - +Static variable in class org.gnu.readline.ReadlineLibrary +
Constant for fallback, pure Java implementation. +
+
+

+R

+
+
read(char[], int, int) - +Method in class org.gnu.readline.ReadlineReader +
Reads what's given from readline() into a buffer. +
readHistoryFile(String) - +Static method in class org.gnu.readline.Readline +
Reads a history file into memory + + +
readInitFile(String) - +Static method in class org.gnu.readline.Readline +
Read keybindings and variable assignments from a file. +
Readline - class org.gnu.readline.Readline.
This class implements basic functionality of the GNU-readline interface.
Readline() - +Constructor for class org.gnu.readline.Readline +
  +
readline(String) - +Static method in class org.gnu.readline.Readline +
Display a prompt on standard output and read a string from standard + input. +
readline(String, boolean) - +Static method in class org.gnu.readline.Readline +
Display a prompt on standard output and read a string from + standard input. +
ReadlineCompleter - interface org.gnu.readline.ReadlineCompleter.
Callback interface that implements completion.
ReadlineLibrary - class org.gnu.readline.ReadlineLibrary.
This class implements a typesafe enumeration of the backing libraries.
ReadlineReader - class org.gnu.readline.ReadlineReader.
A Reader wrapper for the Readline classes.
ReadlineReader(File, ReadlineLibrary) - +Constructor for class org.gnu.readline.ReadlineReader +
Constructs a ReadlineReader object with an associated history + file. +
ReadlineReader(ReadlineLibrary) - +Constructor for class org.gnu.readline.ReadlineReader +
Constructs a ReadlineReader object with the default prompt. +
ReadlineReader(String, File, ReadlineLibrary) - +Constructor for class org.gnu.readline.ReadlineReader +
Constructs a ReadlineReader object with an associated history + file and prompt. +
ReadlineReader(String, ReadlineLibrary) - +Constructor for class org.gnu.readline.ReadlineReader +
Constructs a ReadlineReader object with the given prompt. +
ReadlineTest - class test.ReadlineTest.
ReadlineTest.java + + This class shows the usage of the readline wrapper.
ReadlineTest() - +Constructor for class test.ReadlineTest +
  +
RL_ALREADY_PROMPTED - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_already_prompted using + getVar() or setVar(). +
RL_ATTEMPTED_COMPLETION_OVER - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_attempted_completion_over using + getVar() or setVar(). +
RL_BASIC_QUOTE_CHARACTERS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_basic_quote_characters using + getVar() or setVar(). +
RL_BASIC_WORD_BREAK_CHARACTERS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_basic_word_break_characters using + getVar() or setVar(). +
RL_CATCH_SIGNALS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_catch_signals using + getVar() or setVar(). +
RL_CATCH_SIGWINCH - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_catch_sigwinch using + getVar() or setVar(). +
RL_COMPLETER_QUOTE_CHARACTERS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completer_quote_characters using + getVar() or setVar(). +
RL_COMPLETER_WORD_BREAK_CHARACTERS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completer_word_break_characters using + getVar() or setVar(). +
RL_COMPLETION_APPEND_CHARACTER - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completion_append_character using + getVar() or setVar(). +
RL_COMPLETION_MARK_SYMLINK_DIRS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completion_mark_symlink_dirs using + getVar() or setVar(). +
RL_COMPLETION_QUERY_ITEMS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completion_query_items using + getVar() or setVar(). +
RL_COMPLETION_SUPPRESS_APPEND - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completion_suppress_append using + getVar() or setVar(). +
RL_COMPLETION_TYPE - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_completion_type using + getVar() or setVar(). +
RL_DISPATCHING - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_dispatching using + getVar() or setVar(). +
RL_DONE - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_done using + getVar() or setVar(). +
RL_EDITING_MODE - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_editing_mode using + getVar() or setVar(). +
RL_END - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_end using + getVar() or setVar(). +
RL_ERASE_EMPTY_LINE - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_erase_empty_line using + getVar() or setVar(). +
RL_EXECUTING_MACRO - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_executing_macro using + getVar() or setVar(). +
RL_EXPLICIT_ARG - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_explicit_arg using + getVar() or setVar(). +
RL_FILENAME_COMPLETION_DESIRED - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_filename_completion_desired using + getVar() or setVar(). +
RL_FILENAME_QUOTE_CHARACTERS - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_filename_quote_characters using + getVar() or setVar(). +
RL_FILENAME_QUOTING_DESIRED - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_filename_quoting_desired using + getVar() or setVar(). +
RL_GNU_READLINE_P - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_gnu_readline_p using + getVar() or setVar(). +
RL_IGNORE_COMPLETION_DUPLICATES - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_ignore_completion_duplicates using + getVar() or setVar(). +
RL_INHIBIT_COMPLETION - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_inhibit_completion using + getVar() or setVar(). +
RL_INSERT_MODE - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_insert_mode using + getVar() or setVar(). +
RL_LIBRARY_VERSION - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_library_version using + getVar() or setVar(). +
RL_LINE_BUFFER - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_line_buffer using + getVar() or setVar(). +
RL_MARK - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_mark using + getVar() or setVar(). +
RL_NUM_CHARS_TO_READ - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_num_chars_to_read using + getVar() or setVar(). +
RL_NUMERIC_ARG - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_numeric_arg using + getVar() or setVar(). +
RL_PENDING_INPUT - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_pending_input using + getVar() or setVar(). +
RL_POINT - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_point using + getVar() or setVar(). +
RL_PROMPT - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_prompt using + getVar() or setVar(). +
RL_READLINE_NAME - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_readline_name using + getVar() or setVar(). +
RL_READLINE_STATE - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_readline_state using + getVar() or setVar(). +
RL_READLINE_VERSION - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_readline_version using + getVar() or setVar(). +
RL_SPECIAL_PREFIXES - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_special_prefixes using + getVar() or setVar(). +
RL_TERMINAL_NAME - +Static variable in class org.gnu.readline.Readline +
Constant to access rl_terminal_name using + getVar() or setVar(). +
+
+

+S

+
+
setCompleter(ReadlineCompleter) - +Static method in class org.gnu.readline.Readline +
Set your completer implementation. +
setEncoding(String) - +Static method in class org.gnu.readline.Readline +
Set current encoding of fallback BufferedReader. +
setPrompt(String) - +Method in class org.gnu.readline.ReadlineReader +
Sets the prompt to the given value. +
setThrowExceptionOnUnsupportedMethod(boolean) - +Static method in class org.gnu.readline.Readline +
Configure behavior in case an unsupported method is called. +
setVar(ReadlineConstInt, int) - +Static method in class org.gnu.readline.Readline +
Set integer readline-variable. +
setVar(ReadlineConstString, String) - +Static method in class org.gnu.readline.Readline +
Set string readline-variable. +
setWordBreakCharacters(String) - +Static method in class org.gnu.readline.Readline +
Set word break characters. +
+
+

+T

+
+
test - package test
 
TestCompleter - class test.TestCompleter.
This class is a sample custom completer.
TestCompleter() - +Constructor for class test.TestCompleter +
Default constructor. +
+
+

+W

+
+
writeHistoryFile(String) - +Static method in class org.gnu.readline.Readline +
Writes a history file to disc + + +
+
+A B C D E G H I L M O P R S T W + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/allclasses-noframe.html +++ libreadline-java-0.8.0.1/api-html/allclasses-noframe.html @@ -0,0 +1,41 @@ + + + + + + +All Classes (The Java-Readline Library) + + + + + + +All Classes +
+ + + + + +
Readline +
+ReadlineCompleter +
+ReadlineLibrary +
+ReadlineReader +
+ReadlineTest +
+TestCompleter +
+
+ + + --- libreadline-java-0.8.0.1.orig/api-html/packages.html +++ libreadline-java-0.8.0.1/api-html/packages.html @@ -0,0 +1,32 @@ + + + + + + + (The Java-Readline Library) + + + + + + +
+ +
+ +
+
+The front page has been relocated.Please see: +
+          Frame version +
+          Non-frame version.
+ + + --- libreadline-java-0.8.0.1.orig/api-html/package-list +++ libreadline-java-0.8.0.1/api-html/package-list @@ -0,0 +1,2 @@ +org.gnu.readline +test --- libreadline-java-0.8.0.1.orig/api-html/stylesheet.css +++ libreadline-java-0.8.0.1/api-html/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +.TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } +.FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } +.FrameItemFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } + +/* Example of smaller, sans-serif font in frames */ +/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ +.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + --- libreadline-java-0.8.0.1.orig/api-html/deprecated-list.html +++ libreadline-java-0.8.0.1/api-html/deprecated-list.html @@ -0,0 +1,121 @@ + + + + + + +Deprecated List (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+Deprecated API

+
+
+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/help-doc.html +++ libreadline-java-0.8.0.1/api-html/help-doc.html @@ -0,0 +1,176 @@ + + + + + + +API Help (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Exceptions
  • Errors
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/overview-tree.html +++ libreadline-java-0.8.0.1/api-html/overview-tree.html @@ -0,0 +1,139 @@ + + + + + + +Class Hierarchy (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
org.gnu.readline, test
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/serialized-form.html +++ libreadline-java-0.8.0.1/api-html/serialized-form.html @@ -0,0 +1,121 @@ + + + + + + +Serialized Form (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+Serialized Form

+
+
+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/overview-frame.html +++ libreadline-java-0.8.0.1/api-html/overview-frame.html @@ -0,0 +1,45 @@ + + + + + + +Overview (The Java-Readline Library) + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0
+ + + + + +
All Classes +

+ +Packages +
+org.gnu.readline +
+test +
+

+ +

+  + + --- libreadline-java-0.8.0.1.orig/api-html/allclasses-frame.html +++ libreadline-java-0.8.0.1/api-html/allclasses-frame.html @@ -0,0 +1,41 @@ + + + + + + +All Classes (The Java-Readline Library) + + + + + + +All Classes +
+ + + + + +
Readline +
+ReadlineCompleter +
+ReadlineLibrary +
+ReadlineReader +
+ReadlineTest +
+TestCompleter +
+
+ + + --- libreadline-java-0.8.0.1.orig/api-html/index.html +++ libreadline-java-0.8.0.1/api-html/index.html @@ -0,0 +1,25 @@ + + + + + + +The Java-Readline Library + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + --- libreadline-java-0.8.0.1.orig/api-html/overview-summary.html +++ libreadline-java-0.8.0.1/api-html/overview-summary.html @@ -0,0 +1,139 @@ + + + + + + +Overview (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +


+
+

+The Java-Readline Library, Version 0.8.0

+
+ + + + + + + + + + + + + +
+Packages
org.gnu.readline 
test 
+ +


+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/ReadlineReader.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/ReadlineReader.html @@ -0,0 +1,479 @@ + + + + + + +ReadlineReader (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+ +

+ +org.gnu.readline +
+Class ReadlineReader

+
+java.lang.Object
+  |
+  +--java.io.Reader
+        |
+        +--org.gnu.readline.ReadlineReader
+
+
+
+
public class ReadlineReader
extends java.io.Reader
+ +

+A Reader wrapper for the Readline classes. This seems + to work fine in conjunction with such classes as BufferedReader, + but it hasn't been tested well enough to see if this will work well + in all cases. + + This was implemented to make it easier to supplant Readline's + functionality [shrug] anywhere and everywhere, but specifically in + BeanShell. +

+ +

+

+
Version:
+
$Revision: 1.2 $
+
Author:
+
Shane Celis
+
+
+ +

+ + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringDEFAULT_PROMPT + +
+           
+ + + + + + + +
Fields inherited from class java.io.Reader
lock
+  + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
ReadlineReader(java.io.File history, + ReadlineLibrary lib) + +
+          Constructs a ReadlineReader object with an associated history + file.
ReadlineReader(ReadlineLibrary lib) + +
+          Constructs a ReadlineReader object with the default prompt.
ReadlineReader(java.lang.String prompt, + java.io.File history, + ReadlineLibrary lib) + +
+          Constructs a ReadlineReader object with an associated history + file and prompt.
ReadlineReader(java.lang.String prompt, + ReadlineLibrary lib) + +
+          Constructs a ReadlineReader object with the given prompt.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclose() + +
+          Nullifies all buffers and writes history file if one was given + at construction time.
+ java.lang.StringgetPrompt() + +
+          Returns the current prompt.
+static voidmain(java.lang.String[] args) + +
+           
+ intread(char[] cbuf, + int off, + int len) + +
+          Reads what's given from readline() into a buffer.
+ voidsetPrompt(java.lang.String prompt) + +
+          Sets the prompt to the given value.
+ + + + + + + +
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_PROMPT

+
+public static final java.lang.String DEFAULT_PROMPT
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+ReadlineReader

+
+public ReadlineReader(java.lang.String prompt,
+                      ReadlineLibrary lib)
+
+
Constructs a ReadlineReader object with the given prompt. +

+

+
+ +

+ReadlineReader

+
+public ReadlineReader(ReadlineLibrary lib)
+
+
Constructs a ReadlineReader object with the default prompt. +

+

+
+ +

+ReadlineReader

+
+public ReadlineReader(java.io.File history,
+                      ReadlineLibrary lib)
+               throws java.io.IOException
+
+
Constructs a ReadlineReader object with an associated history + file. +

+

+
+ +

+ReadlineReader

+
+public ReadlineReader(java.lang.String prompt,
+                      java.io.File history,
+                      ReadlineLibrary lib)
+               throws java.io.IOException
+
+
Constructs a ReadlineReader object with an associated history + file and prompt. +

+

+ + + + + + + + +
+Method Detail
+ +

+getPrompt

+
+public java.lang.String getPrompt()
+
+
Returns the current prompt. +

+

+
+
+
+
+ +

+setPrompt

+
+public void setPrompt(java.lang.String prompt)
+
+
Sets the prompt to the given value. +

+

+
+
+
+
+ +

+read

+
+public int read(char[] cbuf,
+                int off,
+                int len)
+         throws java.io.IOException
+
+
Reads what's given from readline() into a buffer. + When that buffer is emptied, readline() is called + again to replenish that buffer. This seems to work fine in + conjunction with such classes as BufferedReader, but it hasn't + been tested well enough to see if this will work well in all + cases. +

+

+
Specified by:
read in class java.io.Reader
+
+
+ +
java.io.IOException
+
+
+
+ +

+close

+
+public void close()
+           throws java.io.IOException
+
+
Nullifies all buffers and writes history file if one was given + at construction time. +

+

+
Specified by:
close in class java.io.Reader
+
+
+ +
java.io.IOException
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+                 throws java.lang.Exception
+
+
+ +
java.lang.Exception
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/ReadlineCompleter.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/ReadlineCompleter.html @@ -0,0 +1,277 @@ + + + + + + +ReadlineCompleter (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+ +

+ +org.gnu.readline +
+Interface ReadlineCompleter

+
+
All Known Implementing Classes:
TestCompleter
+
+
+
+
public interface ReadlineCompleter
+ +

+Callback interface that implements completion. You've to implement this + interface in order to provide completion in your application. The default + completion mode of the Readline library would otherwise be simple + filename completion. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.Stringcompleter(java.lang.String text, + int state) + +
+          A generator function for filename completion in the general case.
+  +

+ + + + + + + + + + + + + + +
+Method Detail
+ +

+completer

+
+public java.lang.String completer(java.lang.String text,
+                                  int state)
+
+
A generator function for filename completion in the general case. + Note that completion in Bash is a little different because of all + the pathnames that must be followed when looking up completions + for a command. The Bash source is a useful reference for writing + custom completion functions. + +

The completer method is called with the current text to be + expanded (that is: the string of characters after the last + word break character) and + an integer. The integer is zero to indicate, that the user just requested + completion (usually by pressing the TAB-key). The completeter method now + can return one possible choice or null to indicate that there is no + choice. If the completer returned a non-null value it is called back by + the readline library with increasing state variable until + it returns null. + +

Depending on the state and the return value, the readline library + reacts differently. +

    +
  • if the completer returns null for state=0, then + the readline library will beep to indicate that there is no + known completion.
  • +
  • if the completer returns a value for state=0 and + null for state=1, then there was exactly one + possible completion, that is immediately expanded on the command line.
  • +
  • if the completer returns choices for states >= 1, then these + choices are displayed to the user to choose from.
  • +
+ +

Example
+ Consider you have a sorted set (like a TreeSet) of commands: +


+  SortedSet  commandSet; // SortedSet<String>
+ ...
+  commandSet = new TreeSet();
+  commandSet.add("copy");
+  commandSet.add("copyme");
+  commandSet.add("load");
+  commandSet.add("list");
+ ...
+ 

+ now, you could write a completion method that provides completion for these + commands: +
+  private Iterator possibleValues;  // iterator for subsequent calls.
+
+  public String completer(String text, int state) {
+      if (state == 0) {
+           // first call to completer(): initialize our choices-iterator
+           possibleValues = commandSet.tailSet(text).iterator();
+      }
+      if (possibleValues.hasNext()) {
+           String nextKey = (String) possibleValues.next();
+           if (nextKey.startsWith(text))
+               return nextKey;
+      }
+      return null; // we reached the last choice.
+  }
+ 

+

+

+
Parameters:
text - start of completion text. This is the text since the last + word break character.
state - 0 or positive int. This state is zero on the first call + for a completion request and increments for each subsequent + call until the end of choices is reached. +
Returns:
String with a completion choice or null, if there + are no more choices.
See Also:
Readline.getWordBreakCharacters(), +TestCompleter
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/package-frame.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/package-frame.html @@ -0,0 +1,48 @@ + + + + + + +org.gnu.readline (The Java-Readline Library) + + + + + + + +org.gnu.readline + + + + +
+Interfaces  + +
+ReadlineCompleter
+ + + + + + +
+Classes  + +
+Readline +
+ReadlineLibrary +
+ReadlineReader
+ + + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/package-summary.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/package-summary.html @@ -0,0 +1,157 @@ + + + + + + +org.gnu.readline (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+

+Package org.gnu.readline +

+ + + + + + + + + +
+Interface Summary
ReadlineCompleterCallback interface that implements completion.
+  + +

+ + + + + + + + + + + + + + + + + +
+Class Summary
ReadlineThis class implements basic functionality of the GNU-readline interface.
ReadlineLibraryThis class implements a typesafe enumeration of the backing libraries.
ReadlineReaderA Reader wrapper for the Readline classes.
+  + +

+


+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/package-tree.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +org.gnu.readline Class Hierarchy (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+Hierarchy For Package org.gnu.readline +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/ReadlineLibrary.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/ReadlineLibrary.html @@ -0,0 +1,342 @@ + + + + + + +ReadlineLibrary (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+ +

+ +org.gnu.readline +
+Class ReadlineLibrary

+
+java.lang.Object
+  |
+  +--org.gnu.readline.ReadlineLibrary
+
+
+
+
public final class ReadlineLibrary
extends java.lang.Object
+ +

+This class implements a typesafe enumeration of the backing libraries. +

+ +

+

+
Version:
+
$Revision: 1.4 $
+
Author:
+
$Author: bablokb $
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static ReadlineLibraryEditline + +
+          Constant for Editline implementation.
+static ReadlineLibraryGetline + +
+          Constant for Getline implementation.
+static ReadlineLibraryGnuReadline + +
+          Constant for GNU-Readline implementation.
+static ReadlineLibraryPureJava + +
+          Constant for fallback, pure Java implementation.
+  + + + + + + + + + + + + + + + + + + +
+Method Summary
+static ReadlineLibrarybyName(java.lang.String name) + +
+          Return ReadlineLibrary-object with given name.
+ java.lang.StringgetName() + +
+          Query name of backing library.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+PureJava

+
+public static final ReadlineLibrary PureJava
+
+
Constant for fallback, pure Java implementation. +

+

+
+
+
+ +

+GnuReadline

+
+public static final ReadlineLibrary GnuReadline
+
+
Constant for GNU-Readline implementation. +

+

+
+
+
+ +

+Editline

+
+public static final ReadlineLibrary Editline
+
+
Constant for Editline implementation. +

+

+
+
+
+ +

+Getline

+
+public static final ReadlineLibrary Getline
+
+
Constant for Getline implementation. +

+

+
+
+ + + + + + + + + + + +
+Method Detail
+ +

+getName

+
+public java.lang.String getName()
+
+
Query name of backing library. +

+

+ +
Returns:
Name of backing library, or "PureJava", in case fallback + implementation is used.
+
+
+
+ +

+byName

+
+public static ReadlineLibrary byName(java.lang.String name)
+
+
Return ReadlineLibrary-object with given name. +

+

+ +
Returns:
one of the predefined constants
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/org/gnu/readline/Readline.html +++ libreadline-java-0.8.0.1/api-html/org/gnu/readline/Readline.html @@ -0,0 +1,2427 @@ + + + + + + +Readline (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+ +

+ +org.gnu.readline +
+Class Readline

+
+java.lang.Object
+  |
+  +--org.gnu.readline.Readline
+
+
+
+
public class Readline
extends java.lang.Object
+ +

+This class implements basic functionality of the GNU-readline interface. It + uses native method calls if available, otherwise it defaults to normal + I/O using a BufferedReader. + +

A typical implementation could look like: +

+ try {
+     Readline.load(ReadlineLibrary.GnuReadline);
+ }
+ catch (UnsatisfiedLinkError ignore_me) {
+     System.err.println("couldn't load readline lib. Using simple stdin.");
+ }
+
+ Readline.initReadline("myapp");
+
+ Runtime.getRuntime()                       // if your version supports
+   .addShutdownHook(new Thread() {          // addShutdownHook (since 1.3)
+      public void run() {
+        Readline.cleanup();
+      }
+    });
+
+ while (true) {
+     try {
+         line = Readline.readline("myprompt> ");
+         if (line == null)
+             System.out.println("no input");
+         else
+             processLine();
+     } 
+     catch (EOFException e) {
+         break;
+     } 
+     catch (Exception e) {
+         doSomething();
+     }
+ }
+ Readline.cleanup();  // see note above about addShutdownHook
+
+
+

+ +

+

+
Version:
+
$Revision: 1.29 $
+
Author:
+
$Author: bablokb $
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static org.gnu.readline.ReadlineConstIntHISTORY_BASE + +
+          Constant to access history_base using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntHISTORY_LENGTH + +
+          Constant to access history_length using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntHISTORY_MAX_ENTRIES + +
+          Constant to access history_max_entries using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringHISTORY_NO_EXPAND_CHARS + +
+          Constant to access history_no_expand_chars using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntHISTORY_QUOTES_EXPANSION + +
+          Constant to access history_quotes_inhibit_expansion using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringHISTORY_SEARCH_DELIMITERS + +
+          Constant to access history_search_delimiter_chars using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringHISTORY_WORD_DELIMITERS + +
+          Constant to access history_word_delimiters using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_ALREADY_PROMPTED + +
+          Constant to access rl_already_prompted using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_ATTEMPTED_COMPLETION_OVER + +
+          Constant to access rl_attempted_completion_over using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_BASIC_QUOTE_CHARACTERS + +
+          Constant to access rl_basic_quote_characters using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_BASIC_WORD_BREAK_CHARACTERS + +
+          Constant to access rl_basic_word_break_characters using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_CATCH_SIGNALS + +
+          Constant to access rl_catch_signals using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_CATCH_SIGWINCH + +
+          Constant to access rl_catch_sigwinch using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_COMPLETER_QUOTE_CHARACTERS + +
+          Constant to access rl_completer_quote_characters using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_COMPLETER_WORD_BREAK_CHARACTERS + +
+          Constant to access rl_completer_word_break_characters using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_COMPLETION_APPEND_CHARACTER + +
+          Constant to access rl_completion_append_character using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_COMPLETION_MARK_SYMLINK_DIRS + +
+          Constant to access rl_completion_mark_symlink_dirs using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_COMPLETION_QUERY_ITEMS + +
+          Constant to access rl_completion_query_items using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_COMPLETION_SUPPRESS_APPEND + +
+          Constant to access rl_completion_suppress_append using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_COMPLETION_TYPE + +
+          Constant to access rl_completion_type using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_DISPATCHING + +
+          Constant to access rl_dispatching using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_DONE + +
+          Constant to access rl_done using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_EDITING_MODE + +
+          Constant to access rl_editing_mode using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_END + +
+          Constant to access rl_end using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_ERASE_EMPTY_LINE + +
+          Constant to access rl_erase_empty_line using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_EXECUTING_MACRO + +
+          Constant to access rl_executing_macro using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_EXPLICIT_ARG + +
+          Constant to access rl_explicit_arg using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_FILENAME_COMPLETION_DESIRED + +
+          Constant to access rl_filename_completion_desired using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_FILENAME_QUOTE_CHARACTERS + +
+          Constant to access rl_filename_quote_characters using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_FILENAME_QUOTING_DESIRED + +
+          Constant to access rl_filename_quoting_desired using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_GNU_READLINE_P + +
+          Constant to access rl_gnu_readline_p using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_IGNORE_COMPLETION_DUPLICATES + +
+          Constant to access rl_ignore_completion_duplicates using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_INHIBIT_COMPLETION + +
+          Constant to access rl_inhibit_completion using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_INSERT_MODE + +
+          Constant to access rl_insert_mode using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_LIBRARY_VERSION + +
+          Constant to access rl_library_version using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_LINE_BUFFER + +
+          Constant to access rl_line_buffer using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_MARK + +
+          Constant to access rl_mark using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_NUM_CHARS_TO_READ + +
+          Constant to access rl_num_chars_to_read using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_NUMERIC_ARG + +
+          Constant to access rl_numeric_arg using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_PENDING_INPUT + +
+          Constant to access rl_pending_input using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_POINT + +
+          Constant to access rl_point using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_PROMPT + +
+          Constant to access rl_prompt using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_READLINE_NAME + +
+          Constant to access rl_readline_name using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_READLINE_STATE + +
+          Constant to access rl_readline_state using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstIntRL_READLINE_VERSION + +
+          Constant to access rl_readline_version using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_SPECIAL_PREFIXES + +
+          Constant to access rl_special_prefixes using + getVar() or setVar().
+static org.gnu.readline.ReadlineConstStringRL_TERMINAL_NAME + +
+          Constant to access rl_terminal_name using + getVar() or setVar().
+  + + + + + + + + + + +
+Constructor Summary
Readline() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddToHistory(java.lang.String line) + +
+          Add a line to the in-memory history.
+static voidcleanup() + +
+          Reset the readline library and with it, the terminal.
+static voidclearHistory() + +
+          Clear the history buffer.
+static ReadlineCompletergetCompleter() + +
+          Query current completer function.
+static java.lang.StringgetEncoding() + +
+          Query current encoding of fallback BufferedReader.
+static voidgetHistory(java.util.Collection collection) + +
+          Get the history buffer in a supplied Collection.
+static java.lang.StringgetHistoryLine(int i) + +
+          Get the specified entry from the history buffer.
+static intgetHistorySize() + +
+          Get the size, in elements (lines), of the history buffer.
+static java.lang.StringgetLineBuffer() + +
+          Query the current line buffer.
+static booleangetThrowExceptionOnUnsupportedMethod() + +
+          Query behavior in case an unsupported method is called.
+static intgetVar(org.gnu.readline.ReadlineConstInt c) + +
+          Query integer readline-variable.
+static java.lang.StringgetVar(org.gnu.readline.ReadlineConstString c) + +
+          Query string readline-variable.
+static java.lang.StringgetWordBreakCharacters() + +
+          Query word break characters.
+static booleanhasTerminal() + +
+          Return if we have a terminal.
+static voidinitReadline(java.lang.String applicationName) + +
+          Initialize the GNU-Readline library.
+static voidload(ReadlineLibrary lib) + +
+          Load an implementing backing library.
+static booleanparseAndBind(java.lang.String line) + +
+          Parse argument string as if it had been read from `inputrc' file + and perform key bindings and variable assignments found.
+static voidreadHistoryFile(java.lang.String filename) + +
+          Reads a history file into memory + +
+static voidreadInitFile(java.lang.String filename) + +
+          Read keybindings and variable assignments from a file.
+static java.lang.Stringreadline(java.lang.String prompt) + +
+          Display a prompt on standard output and read a string from standard + input.
+static java.lang.Stringreadline(java.lang.String prompt, + boolean addToHist) + +
+          Display a prompt on standard output and read a string from + standard input.
+static voidsetCompleter(ReadlineCompleter rlc) + +
+          Set your completer implementation.
+static voidsetEncoding(java.lang.String encoding) + +
+          Set current encoding of fallback BufferedReader.
+static voidsetThrowExceptionOnUnsupportedMethod(boolean flag) + +
+          Configure behavior in case an unsupported method is called.
+static intsetVar(org.gnu.readline.ReadlineConstInt c, + int value) + +
+          Set integer readline-variable.
+static java.lang.StringsetVar(org.gnu.readline.ReadlineConstString c, + java.lang.String value) + +
+          Set string readline-variable.
+static voidsetWordBreakCharacters(java.lang.String wordBreakCharacters) + +
+          Set word break characters.
+static voidwriteHistoryFile(java.lang.String filename) + +
+          Writes a history file to disc + +
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+RL_LIBRARY_VERSION

+
+public static final org.gnu.readline.ReadlineConstString RL_LIBRARY_VERSION
+
+
Constant to access rl_library_version using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_READLINE_NAME

+
+public static final org.gnu.readline.ReadlineConstString RL_READLINE_NAME
+
+
Constant to access rl_readline_name using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_PROMPT

+
+public static final org.gnu.readline.ReadlineConstString RL_PROMPT
+
+
Constant to access rl_prompt using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_LINE_BUFFER

+
+public static final org.gnu.readline.ReadlineConstString RL_LINE_BUFFER
+
+
Constant to access rl_line_buffer using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_TERMINAL_NAME

+
+public static final org.gnu.readline.ReadlineConstString RL_TERMINAL_NAME
+
+
Constant to access rl_terminal_name using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_EXECUTING_MACRO

+
+public static final org.gnu.readline.ReadlineConstString RL_EXECUTING_MACRO
+
+
Constant to access rl_executing_macro using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_BASIC_WORD_BREAK_CHARACTERS

+
+public static final org.gnu.readline.ReadlineConstString RL_BASIC_WORD_BREAK_CHARACTERS
+
+
Constant to access rl_basic_word_break_characters using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETER_WORD_BREAK_CHARACTERS

+
+public static final org.gnu.readline.ReadlineConstString RL_COMPLETER_WORD_BREAK_CHARACTERS
+
+
Constant to access rl_completer_word_break_characters using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETER_QUOTE_CHARACTERS

+
+public static final org.gnu.readline.ReadlineConstString RL_COMPLETER_QUOTE_CHARACTERS
+
+
Constant to access rl_completer_quote_characters using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_BASIC_QUOTE_CHARACTERS

+
+public static final org.gnu.readline.ReadlineConstString RL_BASIC_QUOTE_CHARACTERS
+
+
Constant to access rl_basic_quote_characters using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_FILENAME_QUOTE_CHARACTERS

+
+public static final org.gnu.readline.ReadlineConstString RL_FILENAME_QUOTE_CHARACTERS
+
+
Constant to access rl_filename_quote_characters using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_SPECIAL_PREFIXES

+
+public static final org.gnu.readline.ReadlineConstString RL_SPECIAL_PREFIXES
+
+
Constant to access rl_special_prefixes using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+HISTORY_WORD_DELIMITERS

+
+public static final org.gnu.readline.ReadlineConstString HISTORY_WORD_DELIMITERS
+
+
Constant to access history_word_delimiters using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+HISTORY_NO_EXPAND_CHARS

+
+public static final org.gnu.readline.ReadlineConstString HISTORY_NO_EXPAND_CHARS
+
+
Constant to access history_no_expand_chars using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+HISTORY_SEARCH_DELIMITERS

+
+public static final org.gnu.readline.ReadlineConstString HISTORY_SEARCH_DELIMITERS
+
+
Constant to access history_search_delimiter_chars using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_READLINE_VERSION

+
+public static final org.gnu.readline.ReadlineConstInt RL_READLINE_VERSION
+
+
Constant to access rl_readline_version using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_GNU_READLINE_P

+
+public static final org.gnu.readline.ReadlineConstInt RL_GNU_READLINE_P
+
+
Constant to access rl_gnu_readline_p using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_READLINE_STATE

+
+public static final org.gnu.readline.ReadlineConstInt RL_READLINE_STATE
+
+
Constant to access rl_readline_state using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_EDITING_MODE

+
+public static final org.gnu.readline.ReadlineConstInt RL_EDITING_MODE
+
+
Constant to access rl_editing_mode using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_INSERT_MODE

+
+public static final org.gnu.readline.ReadlineConstInt RL_INSERT_MODE
+
+
Constant to access rl_insert_mode using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_POINT

+
+public static final org.gnu.readline.ReadlineConstInt RL_POINT
+
+
Constant to access rl_point using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_END

+
+public static final org.gnu.readline.ReadlineConstInt RL_END
+
+
Constant to access rl_end using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_MARK

+
+public static final org.gnu.readline.ReadlineConstInt RL_MARK
+
+
Constant to access rl_mark using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_DONE

+
+public static final org.gnu.readline.ReadlineConstInt RL_DONE
+
+
Constant to access rl_done using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_PENDING_INPUT

+
+public static final org.gnu.readline.ReadlineConstInt RL_PENDING_INPUT
+
+
Constant to access rl_pending_input using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_DISPATCHING

+
+public static final org.gnu.readline.ReadlineConstInt RL_DISPATCHING
+
+
Constant to access rl_dispatching using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_EXPLICIT_ARG

+
+public static final org.gnu.readline.ReadlineConstInt RL_EXPLICIT_ARG
+
+
Constant to access rl_explicit_arg using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_NUMERIC_ARG

+
+public static final org.gnu.readline.ReadlineConstInt RL_NUMERIC_ARG
+
+
Constant to access rl_numeric_arg using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_ERASE_EMPTY_LINE

+
+public static final org.gnu.readline.ReadlineConstInt RL_ERASE_EMPTY_LINE
+
+
Constant to access rl_erase_empty_line using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_ALREADY_PROMPTED

+
+public static final org.gnu.readline.ReadlineConstInt RL_ALREADY_PROMPTED
+
+
Constant to access rl_already_prompted using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_NUM_CHARS_TO_READ

+
+public static final org.gnu.readline.ReadlineConstInt RL_NUM_CHARS_TO_READ
+
+
Constant to access rl_num_chars_to_read using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_CATCH_SIGNALS

+
+public static final org.gnu.readline.ReadlineConstInt RL_CATCH_SIGNALS
+
+
Constant to access rl_catch_signals using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_CATCH_SIGWINCH

+
+public static final org.gnu.readline.ReadlineConstInt RL_CATCH_SIGWINCH
+
+
Constant to access rl_catch_sigwinch using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_FILENAME_COMPLETION_DESIRED

+
+public static final org.gnu.readline.ReadlineConstInt RL_FILENAME_COMPLETION_DESIRED
+
+
Constant to access rl_filename_completion_desired using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_FILENAME_QUOTING_DESIRED

+
+public static final org.gnu.readline.ReadlineConstInt RL_FILENAME_QUOTING_DESIRED
+
+
Constant to access rl_filename_quoting_desired using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_ATTEMPTED_COMPLETION_OVER

+
+public static final org.gnu.readline.ReadlineConstInt RL_ATTEMPTED_COMPLETION_OVER
+
+
Constant to access rl_attempted_completion_over using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETION_TYPE

+
+public static final org.gnu.readline.ReadlineConstInt RL_COMPLETION_TYPE
+
+
Constant to access rl_completion_type using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETION_APPEND_CHARACTER

+
+public static final org.gnu.readline.ReadlineConstInt RL_COMPLETION_APPEND_CHARACTER
+
+
Constant to access rl_completion_append_character using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETION_SUPPRESS_APPEND

+
+public static final org.gnu.readline.ReadlineConstInt RL_COMPLETION_SUPPRESS_APPEND
+
+
Constant to access rl_completion_suppress_append using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETION_QUERY_ITEMS

+
+public static final org.gnu.readline.ReadlineConstInt RL_COMPLETION_QUERY_ITEMS
+
+
Constant to access rl_completion_query_items using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+RL_COMPLETION_MARK_SYMLINK_DIRS

+
+public static final org.gnu.readline.ReadlineConstInt RL_COMPLETION_MARK_SYMLINK_DIRS
+
+
Constant to access rl_completion_mark_symlink_dirs using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_IGNORE_COMPLETION_DUPLICATES

+
+public static final org.gnu.readline.ReadlineConstInt RL_IGNORE_COMPLETION_DUPLICATES
+
+
Constant to access rl_ignore_completion_duplicates using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+RL_INHIBIT_COMPLETION

+
+public static final org.gnu.readline.ReadlineConstInt RL_INHIBIT_COMPLETION
+
+
Constant to access rl_inhibit_completion using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+HISTORY_BASE

+
+public static final org.gnu.readline.ReadlineConstInt HISTORY_BASE
+
+
Constant to access history_base using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+HISTORY_LENGTH

+
+public static final org.gnu.readline.ReadlineConstInt HISTORY_LENGTH
+
+
Constant to access history_length using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+ +

+HISTORY_MAX_ENTRIES

+
+public static final org.gnu.readline.ReadlineConstInt HISTORY_MAX_ENTRIES
+
+
Constant to access history_max_entries using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+
+ +

+HISTORY_QUOTES_EXPANSION

+
+public static final org.gnu.readline.ReadlineConstInt HISTORY_QUOTES_EXPANSION
+
+
Constant to access history_quotes_inhibit_expansion using + getVar() or setVar(). + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Readline

+
+public Readline()
+
+
+ + + + + + + + +
+Method Detail
+ +

+load

+
+public static final void load(ReadlineLibrary lib)
+                       throws java.lang.UnsatisfiedLinkError
+
+
Load an implementing backing library. This method might throw an + UnsatisfiedLinkError in case the native libary is not found in the + library path. If you want to have a portable program, just catch and + ignore that error. JavaReadline will then just use the pure Java fallback + solution. +

+

+
Parameters:
lib - An object (constant) of type ReadlineLibrary +
Throws: +
java.lang.UnsatisfiedLinkError - if the shared library could not be + found. Add it to your LD_LIBRARY_PATH.
See Also:
ReadlineLibrary
+
+
+
+ +

+initReadline

+
+public static void initReadline(java.lang.String applicationName)
+
+
Initialize the GNU-Readline library. This will also set the + application name, which can be used in the initialization files of + Readline (usually /etc/inputrc and ~/.inputrc) to define application + specific keys. See the file ReadlineTest.java int the test subdir of + the distribution for an example. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
  • Getline
  • +
+

+

+

+
Parameters:
applicationName - Name of application in initialization file
+
+
+
+ +

+readline

+
+public static java.lang.String readline(java.lang.String prompt)
+                                 throws java.io.EOFException,
+                                        java.io.IOException,
+                                        java.io.UnsupportedEncodingException
+
+
Display a prompt on standard output and read a string from standard + input. This method returns 'null', if there has been an empty input + (user pressed just [RETURN]) and throws an EOFException on end-of-file + (C-d). This versino of readline() automatically adds the line + to the in-memory history; use the other version of readline() + if you want explicit control over that feature. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
  • Getline
  • +
  • PureJava
  • +
+

+

+

+
Parameters:
prompt - Prompt to display +
Returns:
The string the user entered or 'null' if there was no input. +
Throws: +
java.io.EOFException - on end-of-file, i.e. CTRL-d input. +
java.io.IOException +
java.io.UnsupportedEncodingException
See Also:
readline(String,boolean), +#addHistory()
+
+
+
+ +

+readline

+
+public static java.lang.String readline(java.lang.String prompt,
+                                        boolean addToHist)
+                                 throws java.io.EOFException,
+                                        java.io.IOException,
+                                        java.io.UnsupportedEncodingException
+
+
Display a prompt on standard output and read a string from + standard input. This method returns 'null', if there has + been an empty input (user pressed just [RETURN]) and throws + an EOFException on end-of-file (C-d). +

+

+
Parameters:
prompt - Prompt to display
addToHist - true to add the line to the history + automatically; false to refrain from + adding the line to the history. (You can manually + add the line to the history by calling + addHistory().) +
Returns:
The string the user entered or 'null' if there was no input. +
Throws: +
java.io.EOFException - on end-of-file, i.e. CTRL-d input. +
java.io.IOException +
java.io.UnsupportedEncodingException
See Also:
readline(String), +#addHistory()
+
+
+
+ +

+addToHistory

+
+public static void addToHistory(java.lang.String line)
+
+
Add a line to the in-memory history. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
  • Getline
  • +
+

+

+

+
Parameters:
line - The line to add to the history +
Throws: +
UnsupportOperationException - if underlying library doesn't support + a history
+
+
+
+ +

+getHistory

+
+public static void getHistory(java.util.Collection collection)
+
+
Get the history buffer in a supplied Collection. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
Parameters:
collection - where to store the history +
Throws: +
UnsupportOperationException - if underlying library doesn't support + a history
+
+
+
+ +

+getHistorySize

+
+public static int getHistorySize()
+
+
Get the size, in elements (lines), of the history buffer. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+ +
Returns:
the number of lines in the history buffer
+
+
+
+ +

+clearHistory

+
+public static void clearHistory()
+
+
Clear the history buffer. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+
+ +

+getHistoryLine

+
+public static java.lang.String getHistoryLine(int i)
+
+
Get the specified entry from the history buffer. History buffer entries + are numbered from 0 through (getHistorySize() - 1), with the + oldest entry at index 0. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
Parameters:
i - the index of the entry to return +
Returns:
the line at the specified index in the history buffer +
Throws: +
java.lang.ArrayIndexOutOfBoundsException - index out of range
+
+
+
+ +

+readInitFile

+
+public static void readInitFile(java.lang.String filename)
+                         throws java.io.IOException
+
+
Read keybindings and variable assignments from a file. This method is a + wrapper to rl_read_init_file(char *filename). Throws IOException if + something goes wrong. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
Parameters:
filename - Name of file to read bindings from +
Returns:
void +
java.io.IOException
+
+
+
+ +

+parseAndBind

+
+public static boolean parseAndBind(java.lang.String line)
+
+
Parse argument string as if it had been read from `inputrc' file + and perform key bindings and variable assignments found. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
+

+

+

+
Parameters:
line - Simulated line from inputrc file +
Returns:
boolean False in case of error
+
+
+
+ +

+readHistoryFile

+
+public static void readHistoryFile(java.lang.String filename)
+                            throws java.io.EOFException,
+                                   java.io.UnsupportedEncodingException
+
+
Reads a history file into memory + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
Parameters:
filename - Name of history file to read +
java.io.EOFException +
java.io.UnsupportedEncodingException
+
+
+
+ +

+writeHistoryFile

+
+public static void writeHistoryFile(java.lang.String filename)
+                             throws java.io.EOFException,
+                                    java.io.UnsupportedEncodingException
+
+
Writes a history file to disc + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
Parameters:
filename - Name of history file to write +
java.io.EOFException +
java.io.UnsupportedEncodingException
+
+
+
+ +

+setCompleter

+
+public static void setCompleter(ReadlineCompleter rlc)
+
+
Set your completer implementation. Setting this to null + will result in the default behaviour of readline which is filename + completion. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
Parameters:
rlc - An object implementing the ReadlineCompleter interface
+
+
+
+ +

+getCompleter

+
+public static ReadlineCompleter getCompleter()
+
+
Query current completer function. +

+

+ +
Returns:
Current ReadlineCompleter object
+
+
+
+ +

+cleanup

+
+public static void cleanup()
+
+
Reset the readline library and with it, the terminal. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+
+ +

+hasTerminal

+
+public static boolean hasTerminal()
+
+
Return if we have a terminal. This requires, that any of the native + libraries have been loaded yet + (so call Readline.load(ReadlineLibrary)()) + first, otherwise this will always return true. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+
+ +

+setWordBreakCharacters

+
+public static void setWordBreakCharacters(java.lang.String wordBreakCharacters)
+                                   throws java.io.UnsupportedEncodingException
+
+
Set word break characters. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
Parameters:
wordBreakCharacters - A string of word break characters +
java.io.UnsupportedEncodingException
+
+
+
+ +

+getWordBreakCharacters

+
+public static java.lang.String getWordBreakCharacters()
+
+
Query word break characters. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+
+ +

+getLineBuffer

+
+public static java.lang.String getLineBuffer()
+
+
Query the current line buffer. This returns the current content of + the internal line buffer. You might need this in a + ReadlineCompleter implementation to access the full text + given so far. + +

Supporting implementations: +

    +
  • GNU-Readline
  • +
  • Editline
  • +
+

+

+

+
+
+
+
+ +

+setThrowExceptionOnUnsupportedMethod

+
+public static void setThrowExceptionOnUnsupportedMethod(boolean flag)
+
+
Configure behavior in case an unsupported method is called. If argument + is true, unsupported methods throw an UnsupportedOperationException. +

+

+
Parameters:
flag - configuration flag
+
+
+
+ +

+getThrowExceptionOnUnsupportedMethod

+
+public static boolean getThrowExceptionOnUnsupportedMethod()
+
+
Query behavior in case an unsupported method is called. +

+

+ +
Returns:
configuration flag
+
+
+
+ +

+setEncoding

+
+public static void setEncoding(java.lang.String encoding)
+
+
Set current encoding of fallback BufferedReader. +

+

+
Parameters:
encoding - encoding to use
+
+
+
+ +

+getEncoding

+
+public static java.lang.String getEncoding()
+
+
Query current encoding of fallback BufferedReader. +

+

+ +
Returns:
current encoding
+
+
+
+ +

+setVar

+
+public static int setVar(org.gnu.readline.ReadlineConstInt c,
+                         int value)
+
+
Set integer readline-variable. +

+

+
Parameters:
c - symbolic constant of readline-variable
value - new value of readline-variable +
Returns:
old value of readline-variable
+
+
+
+ +

+getVar

+
+public static int getVar(org.gnu.readline.ReadlineConstInt c)
+
+
Query integer readline-variable. +

+

+
Parameters:
c - symbolic constant of readline-variable +
Returns:
value of variable
+
+
+
+ +

+setVar

+
+public static java.lang.String setVar(org.gnu.readline.ReadlineConstString c,
+                                      java.lang.String value)
+                               throws java.io.UnsupportedEncodingException
+
+
Set string readline-variable. +

+

+
Parameters:
c - symbolic constant of readline-variable
value - new value of readline-variable +
Returns:
old value of readline-variable +
java.io.UnsupportedEncodingException
+
+
+
+ +

+getVar

+
+public static java.lang.String getVar(org.gnu.readline.ReadlineConstString c)
+                               throws java.io.UnsupportedEncodingException
+
+
Query string readline-variable. +

+

+
Parameters:
c - symbolic constant of readline-variable +
Returns:
value of variable +
java.io.UnsupportedEncodingException
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/test/TestCompleter.html +++ libreadline-java-0.8.0.1/api-html/test/TestCompleter.html @@ -0,0 +1,272 @@ + + + + + + +TestCompleter (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+ +

+ +test +
+Class TestCompleter

+
+java.lang.Object
+  |
+  +--test.TestCompleter
+
+
+
All Implemented Interfaces:
ReadlineCompleter
+
+
+
+
public class TestCompleter
extends java.lang.Object
implements ReadlineCompleter
+ +

+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. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
$Author: Bablokb $
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
TestCompleter() + +
+          Default constructor.
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.Stringcompleter(java.lang.String t, + int s) + +
+          Return possible completion.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+TestCompleter

+
+public TestCompleter()
+
+
Default constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+completer

+
+public java.lang.String completer(java.lang.String t,
+                                  int s)
+
+
Return possible completion. Implements org.gnu.readline.ReadlineCompleter. +

+

+
Specified by:
completer in interface ReadlineCompleter
+
+
+
Parameters:
t - start of completion text. This is the text since the last + word break character.
s - 0 or positive int. This state is zero on the first call + for a completion request and increments for each subsequent + call until the end of choices is reached. +
Returns:
String with a completion choice or null, if there + are no more choices.
See Also:
Readline.getWordBreakCharacters(), +TestCompleter
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/test/package-frame.html +++ libreadline-java-0.8.0.1/api-html/test/package-frame.html @@ -0,0 +1,35 @@ + + + + + + +test (The Java-Readline Library) + + + + + + + +test + + + + +
+Classes  + +
+ReadlineTest +
+TestCompleter
+ + + + --- libreadline-java-0.8.0.1.orig/api-html/test/ReadlineTest.html +++ libreadline-java-0.8.0.1/api-html/test/ReadlineTest.html @@ -0,0 +1,270 @@ + + + + + + +ReadlineTest (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+ +

+ +test +
+Class ReadlineTest

+
+java.lang.Object
+  |
+  +--test.ReadlineTest
+
+
+
+
public class ReadlineTest
extends java.lang.Object
+ +

+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"
+$endif
+
+ + If one argument is given to ReadlineTest, a private initialization file + is read. If a second argument is given, the appropriate library is + loaded. +

+ +

+

+
Version:
+
$Revision: 1.19 $
+
Author:
+
$Author: bablokb $
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
ReadlineTest() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidmain(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
+ +

+ReadlineTest

+
+public ReadlineTest()
+
+
+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
Main entry point. The first argument can be a filename with an + application initialization file. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/test/package-summary.html +++ libreadline-java-0.8.0.1/api-html/test/package-summary.html @@ -0,0 +1,141 @@ + + + + + + +test (The Java-Readline Library) + + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+

+Package test +

+ + + + + + + + + + + + + +
+Class Summary
ReadlineTestReadlineTest.java + + This class shows the usage of the readline wrapper.
TestCompleterThis class is a sample custom completer.
+  + +

+


+ + + + + + + + + + + + + +
+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/ + + --- libreadline-java-0.8.0.1.orig/api-html/test/package-tree.html +++ libreadline-java-0.8.0.1/api-html/test/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +test Class Hierarchy (The Java-Readline Library) + + + + + + + + + + + + + + + + + + +
+The Java-Readline Library, Version 0.8.0 +
+ + +
+
+

+Hierarchy For Package test +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + +
+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/ + +