From: fo <fe...@gm...> - 2006-02-14 02:45:24
|
i hava compild jython whith readline.jar yet, but it seems jython has not get it up. what should i do? thanks. |
From: Khalid Z. <kz...@gm...> - 2006-02-14 16:41:03
|
On 2/13/06, fo <fe...@gm...> wrote: > i hava compild jython whith readline.jar yet, but it seems jython has not > get it up. what should i do? thanks. Here's some discussion from the list archives that may help: http://thread.gmane.org/gmane.comp.lang.jython.user/4009 Suppose i should document that on a wiki page. Or maybe Console.py in Demo/swing could substitute in a pinch since it at least gives access to the command history? - kz |
From: Dave K. <dku...@cu...> - 2006-02-14 21:20:48
|
Khalid Zuberi <kzuberi <at> gmail.com> writes: > > On 2/13/06, fo <feofao <at> gmail.com> wrote: > > i hava compild jython whith readline.jar yet, but it seems jython has not > > get it up. what should i do? thanks. > > Here's some discussion from the list archives that may help: > > http://thread.gmane.org/gmane.comp.lang.jython.user/4009 > > Suppose i should document that on a wiki page. Or maybe Console.py in > Demo/swing could substitute in a pinch since it at least gives access > to the command history? > You might also want to add a note about rlwrap to the Wiki. Here is a bit of explanation from the rlwrap README: rlwrap is a 'readline wrapper', a small utility that uses the GNU readline library to allow the editing of keyboard input for any command. I couldn't find anything like it when I needed it, so I wrote this one back in 1999. By now, there are a number of good readline wrappers around, like rlfe, distributed as part of the GNU readline library, and cle (http://kaolin.unice.fr/Cle/). rlwrap should be especially useful when you need user-defined completion (by way of completion word lists) and persistent history. Moreover, it should be portable across a fairly wide range of Unix systems (it works under cygwin as well) In brief, rlwrap provides command line history, command line editing, and a bit of word completion. For those of us unable or unwilling to build Jython from source, it provides a useful solution to this problem. Dave |
From: Khalid Z. <kz...@gm...> - 2006-02-21 17:08:48
|
On 2/14/06, Dave Kuhlman <dku...@cu...> wrote: > Khalid Zuberi <kzuberi <at> gmail.com> writes: > > > > > On 2/13/06, fo <feofao <at> gmail.com> wrote: > > > i hava compild jython whith readline.jar yet, but it seems jython has= not > > > get it up. what should i do? thanks. > > > > Here's some discussion from the list archives that may help: > > > > http://thread.gmane.org/gmane.comp.lang.jython.user/4009 > > > > Suppose i should document that on a wiki page. Or maybe Console.py in > > Demo/swing could substitute in a pinch since it at least gives access > > to the command history? > > > > > You might also want to add a note about rlwrap to the Wiki. > > Here is a bit of explanation from the rlwrap README: > > rlwrap is a 'readline wrapper', a small utility that uses the GNU > readline library to allow the editing of keyboard input for any > command. I couldn't find anything like it when I needed it, so I wrot= e > this one back in 1999. By now, there are a number of good readline > wrappers around, like rlfe, distributed as part of the GNU readline > library, and cle (http://kaolin.unice.fr/Cle/). > > rlwrap should be especially useful when you need user-defined > completion (by way of completion word lists) and persistent > history. Moreover, it should be portable across a fairly wide range o= f > Unix systems (it works under cygwin as well) > > In brief, rlwrap provides command line history, command line > editing, and a bit of word completion. > > For those of us unable or unwilling to build Jython from source, > it provides a useful solution to this problem. > > Dave > Thanks for the reference to rlwrap. I've started a page on the wiki for readline setup instructions, and added a link to it. Actually while searching the archives for a swing based console implementation i half-remembered seeing, i came across several other alternatives. Apparently there is a simple java based alternative called JLine that can be used as a wrapper similar to rlwrap, or within an alternative console implementation (which somebody actually created and posted). And there are several (i think half-done) swing based console implementations out there. Anyhow, i linked to everything i came across in case anyone finds them useful. The page is at: http://wiki.python.org/jython/ReadlineSetup If you feel inclined you might want to contribute a usage example for rlwrap. Other comments/corrections appreciated. Personally i hope we obsolete these instructions by just getting something working "out of the box" for jython in a future release, though i'm aware there are license considerations for GNU Readline at least. - kz |