Re: date and time in IDL prompt? [message #16610] |
Thu, 05 August 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Med Bennett (mbennett@indra.com) writes:
> Is it possible to always have the current date and time echo in the IDL
> prompt? If I do
>
> IDL> !prompt = 'IDL '+systime(0)+ ' >'
>
> I get a prompt that looks like
>
> IDL Thu Aug 05 09:11:24 1999 >
>
> but it is static, i.e. subsequent prompts always contain the same date
> and time:
>
> IDL Thu Aug 05 09:11:24 1999 >
> IDL Thu Aug 05 09:11:24 1999 >!prompt = 'IDL '+systime(0)+ ' >'
> IDL Thu Aug 05 10:52:12 1999 >
>
> Is there a way to make it dynamic?
Slow day, Med?
You could make a little "prompt" object that
used widget timer events to update the prompt
at some specified interval. You would probably have
to have a small widget program (iconified) on your
display, since you can't send timers to unrealized
widgets, I don't think.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|