From: John D. <jo...@tp...> - 2001-12-13 13:22:33
|
Folks I recently installed the java readline library to get good console support on jython under Linux. I installed the latest version of the library (version 0.6), and discovered that it needs the following change to run. --- org/python/util/ReadlineConsole.java Sat Dec 8 14:38:47 2001 +++ ../jython-2.1a3/org/python/util/ReadlineConsole.java Wed Nov 14 21:21:03 2001 @@ -17,6 +17,15 @@ } public ReadlineConsole(PyObject locals, String filename) { super(locals,filename); + + // *** JohnD *** + // readline library now requires loading first + try { + Readline.load(ReadlineLibrary.GnuReadline); + } catch (Exception e) { + System.err.println("Exception loading GNU readline: " + e); + } + Readline.initReadline("jpython"); } Cheers ........................ JohnD John Dickson |