| Re: Readline and/or easy command line history access [message #66248 is a reply to message #66245] |
Mon, 27 April 2009 08:42   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
Gins wrote:
> On Apr 27, 7:30 am, sav...@nsidc.org wrote:
>> Adam,
>>
>> Keflavich <keflav...@gmail.com> writes:
>>> Is there any sort of readline support in IDL more advanced
>>> than a simple command history? I can hit 'up' at the command line to
>>> retrieve old commands, but this is tedious and sometimes difficult in
>>> large interactive sessions.
>> I'm not sure what you're using either the IDE or idlwave-shell, but JD Smith
>> wrote idlwave-shell routines for exactly this. Just drop these into you
>> .emacs file.
>>
>> Hope this helps.
>>
>> Matt
>
> Thanks Matt, but I use the command line only. I'm a VI user in
> general, so the learning curve to get emacs running would be a bit
> extreme.
>
>
>
> Mike, the link you posted didn't have any code posted, but it linked
> to something called 'tecla' that appeared to have something like what
> I wanted. However, I tried it and it doesn't work as advertised. It
> also dies on a keyboard interrupt, making it pretty useless.
>
> Where can I find out more about callable IDL? It sounds pretty
> interesting, but a quick through the help only told me what it was,
> not how to use it. Do you think it's feasible to use, e.g., the bash
> command line as a frontend for IDL using callable idl? That seems
> like the ideal situation, though I'm not sure it makes sense in terms
> of keeping variables accessible to a session.
>
> And yes, my intent is to have an IPython equivalent for IDL, though
> even the default python terminal includes readline support.
>
> Adam
Callable IDL is the internal C API for IDL for writing a C program that
calls into IDL. This goes the opposite direction of a DLM; a DLM is a C
module using the internal API called from IDL.
Check the External Developer Guide in the online help for more information.
Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
|
|
|
|