mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 07:10:32 -04:00
precise, it is a JNI-wrapper to Readline. It is distributed under the LGPL. You must call Readline.load(ReadlineLibrary lib); before using any other methods. If you omit the call to the load()-method, the pure Java fallback solution is used. Possible values for lib are: ReadlineLibrary.PureJava ReadlineLibrary.GnuReadline ReadlineLibrary.Editline ReadlineLibrary.Getline Note that all programs using GnuReadline will fall under the GPL, since Gnu-Readline is GPL software! WWW: http://sourceforge.net/projects/java-readline/ PR: ports/116817 Submitted by: Martin Kammerhofer <mkamm at gmx.net>
24 lines
1,019 B
C
24 lines
1,019 B
C
--- src/native/org_gnu_readline_Readline.c.orig 2003-01-07 11:14:35.000000000 +0100
|
|
+++ src/native/org_gnu_readline_Readline.c 2007-09-27 09:21:14.000000000 +0200
|
|
@@ -560,6 +560,21 @@
|
|
#endif
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
+/* Sets/gets rl_completion_append_character */
|
|
+/* -------------------------------------------------------------------------- */
|
|
+
|
|
+#ifndef JavaGetline
|
|
+JNIEXPORT jchar JNICALL
|
|
+Java_org_gnu_readline_Readline_setCompletionAppendCharacterImpl
|
|
+(JNIEnv * env, jclass class, jchar appendCharacter) {
|
|
+ int previous_setting = rl_completion_append_character;
|
|
+
|
|
+ rl_completion_append_character = (int)appendCharacter;
|
|
+ return (jchar)previous_setting;
|
|
+}
|
|
+#endif
|
|
+
|
|
+/* -------------------------------------------------------------------------- */
|
|
/* Convert utf8-string to ucs1-string . */
|
|
/* -------------------------------------------------------------------------- */
|
|
|