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

Home » Public Forums » archive » Re: Is there a way to get bold font in 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: Is there a way to get bold font in the IDL prompt? [message #46093] Wed, 02 November 2005 11:04
Oilhead Beemer is currently offline  Oilhead Beemer
Messages: 3
Registered: November 2005
Junior Member
Thanks lajos, this works!

Best,
Oilhead
Re: Is there a way to get bold font in the IDL prompt? [message #46098 is a reply to message #46093] Wed, 02 November 2005 07:21 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Wed, 2 Nov 2005, Oilhead Beemer wrote:

> JD Smith wrote:
>> One way would be switch to IDLWAVE, which colors your prompts for you:
>>
>> http://idlwave.org/screenshots/emacs_21_bp.gif
>>
>> If you'd prefer to stick with the shell, something like:
>>
>> !PROMPT='\033[1;34mIDL> \033[m'
>>
>> in your IDL startup file should do it for most terminal programs.
>> Just replace the "\033" in the above with a real Escape character (C-q
>> ESC in Emacs would do that for you).
>>
>> JD
>
>
> Thanks JD,
>
> Does this work on your system? I don't seem to be able to get this to
> work. The IDL shell doesn't interpret the escape characters from the
> underlaying shell it seems. So if I do:
> !PROMPT='\e[1m aaa \e[0m '
> in an IDL session that is started from bash I get this prompt
> literally. I do get the correct 'aaa' in bold in the shell itself when
> I change $PS1. Same behaviour in tcsh.
>
> Best,
> oilh
>
>

Hi,

the escape character is 27b, and

!PROMPT=string(27b)+'[1;34mIDL> '+string(27b)+'[m'

works on linux/xterm.

regards,
lajos
Re: Is there a way to get bold font in the IDL prompt? [message #46099 is a reply to message #46098] Wed, 02 November 2005 06:41 Go to previous message
Oilhead Beemer is currently offline  Oilhead Beemer
Messages: 3
Registered: November 2005
Junior Member
JD Smith wrote:
> One way would be switch to IDLWAVE, which colors your prompts for you:
>
> http://idlwave.org/screenshots/emacs_21_bp.gif
>
> If you'd prefer to stick with the shell, something like:
>
> !PROMPT='\033[1;34mIDL> \033[m'
>
> in your IDL startup file should do it for most terminal programs.
> Just replace the "\033" in the above with a real Escape character (C-q
> ESC in Emacs would do that for you).
>
> JD


Thanks JD,

Does this work on your system? I don't seem to be able to get this to
work. The IDL shell doesn't interpret the escape characters from the
underlaying shell it seems. So if I do:
!PROMPT='\e[1m aaa \e[0m '
in an IDL session that is started from bash I get this prompt
literally. I do get the correct 'aaa' in bold in the shell itself when
I change $PS1. Same behaviour in tcsh.

Best,
oilh
Re: Is there a way to get bold font in the IDL prompt? [message #46110 is a reply to message #46099] Tue, 01 November 2005 13:15 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 01 Nov 2005 07:41:22 -0800, Oilhead Beemer wrote:

> Hi,
>
> I'm running IDL from the command line on Linux. I've been playing with
> !PROMPT, but do not seem to be able to get bold in my prompt. Is this in
> any way possible?

One way would be switch to IDLWAVE, which colors your prompts for you:

http://idlwave.org/screenshots/emacs_21_bp.gif

If you'd prefer to stick with the shell, something like:

!PROMPT='\033[1;34mIDL> \033[m'

in your IDL startup file should do it for most terminal programs.
Just replace the "\033" in the above with a real Escape character (C-q
ESC in Emacs would do that for you).

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Keyword_Set function
Next Topic: window

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

Current Time: Wed Oct 08 19:56:22 PDT 2025

Total time taken to generate the page: 0.00598 seconds