|
Re: Writing to the IDL prompt? [message #50043 is a reply to message #50033] |
Mon, 04 September 2006 14:23  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Thu, 31 Aug 2006 11:12:10 -0700, Gianguido Cianci wrote:
> Hi all,
>
> I was wondering if there is a way to write to the idl prompt so that
> IDL> write2prompt, 'string'
>
> returns a prompt, populated with the string:
> IDL> string
>
> I am aware of idlwave, but was trying to figure out a way to write a
> recursive history search for the idl command line. Something along the
> lines of ctrl-r on bash or a recursive ^ if you will...
IDLWAVE (as you know) does this easily, using the functionality of COMINT
mode, which is used to run IDL: just hit M-r, enter any regular
expression or simple string, and the match will pop onto the command line.
JD
|
|
|
Re: Writing to the IDL prompt? [message #50052 is a reply to message #50043] |
Fri, 01 September 2006 10:41  |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Thu, 31 Aug 2006, Gianguido Cianci wrote:
> Hi all,
>
> I was wondering if there is a way to write to the idl prompt so that
> IDL> write2prompt, 'string'
>
> returns a prompt, populated with the string:
> IDL> string
>
> I am aware of idlwave, but was trying to figure out a way to write a
> recursive history search for the idl command line. Something along the
> lines of ctrl-r on bash or a recursive ^ if you will...
>
> I have a funny feeling there's no solution, but I thought I'd ask
> anyway.
>
> Thanks,
> Gianguido
>
you can try enhance (http://www.astro.caltech.edu/~mcs/tecla/enhance.html)
from the tecla package (http://www.astro.caltech.edu/~mcs/tecla).
regards,
lajos
|
|
|
Re: Writing to the IDL prompt? [message #50053 is a reply to message #50052] |
Fri, 01 September 2006 10:28  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
Gianguido Cianci wrote:
> Hi all,
>
> I was wondering if there is a way to write to the idl prompt so that
> IDL> write2prompt, 'string'
>
> returns a prompt, populated with the string:
> IDL> string
>
> I am aware of idlwave, but was trying to figure out a way to write a
> recursive history search for the idl command line. Something along the
> lines of ctrl-r on bash or a recursive ^ if you will...
>
> I have a funny feeling there's no solution, but I thought I'd ask
> anyway.
I don't think there's any easy way to do this right now.
I've been asked about this type of feature before and I thought it would
be a nice feature.
Currently, I don't think you could do it for the current DE, but if
there was some kind of open source "extensible development platform"
instead, maybe it would be possible to add.
For command line users, I think you could write a callable IDL program
that functions the same as command line IDL, but has this feature.
Either way, it would be a good feature request for ITT VIS.
Mike
--
www.michaelgalloy.com
|
|
|
Re: Writing to the IDL prompt? [message #50054 is a reply to message #50053] |
Fri, 01 September 2006 08:34  |
Mike Wallace
Messages: 25 Registered: May 2006
|
Junior Member |
|
|
The only way I know to do such a thing would be to write a program the
implements the particular prompt with whatever features you want. Then
have this program call out to IDL for each of the commands you type in.
This sounds like too much work for too little gain to me.
-Mike
|
|
|