comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Writing to the IDL prompt?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Writing to the IDL prompt? [message #50033] Tue, 05 September 2006 12:25
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Holy Guacamole!!!

Lajos, this enhance program is HOT! It is exactly what I was looking
for!!! Man this is great, finally.
Do you use it yourself? do you know of any downsides to this? I guess
it seems like you loose cross session history retention, but that is a
small price to pay in my view for advanced command line editing... WOW!
I can't believe it!

Thanks again,
Gianguido

FĂ–LDY Lajos wrote:
>
> 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 #50043 is a reply to message #50033] Mon, 04 September 2006 14:23 Go to previous message
JD Smith is currently offline  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 Go to previous message
Foldy Lajos is currently offline  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 Go to previous message
Michael Galloy is currently offline  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 Go to previous message
Mike Wallace is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Management of griddata around the borders of the data
Next Topic: Enhancing IDL prompt. Easily!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:15:22 PDT 2025

Total time taken to generate the page: 1.12133 seconds