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 
Return to the default flat view Create a new topic Submit Reply
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 messageGo 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Keyword_Set function
Next Topic: window

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

Current Time: Fri Nov 28 13:48:01 PST 2025

Total time taken to generate the page: 0.40241 seconds