|
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  |
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  |
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  |
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
|
|
|