Re: colored bash prompt

2014-07-02 Thread Eugene M. Zheganin
Hi.

On 18.06.2014 21:05, Mike Smithson wrote:
 On Tue, 17 Jun 2014 23:48:55 -0700, Eugene M. Zheganin
 e...@norma.perm.ru wrote:

 Is it possible to have a colored prompt in mc when both panels are on ?
 It's colored in a subshell when panels are off (after a couple of
 Enters) but not when panels are on.

 I tried that once. I wanted my root login prompt to be bright red or
 something.

 What I recall is the extra characters used to color the prompt messes
 up the
 line length calculations used by readline or whatever command line
 library you
 use.

Do you mean original shell or mc subshell ? In latter case I want to
unstuck and try it out. How do I do this ?

Thanks.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


colored bash prompt

2014-06-18 Thread Eugene M. Zheganin
Hi.

Is it possible to have a colored prompt in mc when both panels are on ?
It's colored in a subshell when panels are off (after a couple of
Enters) but not when panels are on.

Thanks.
Eugene.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: colored bash prompt

2014-06-18 Thread Mike Smithson
On Tue, 17 Jun 2014 23:48:55 -0700, Eugene M. Zheganin e...@norma.perm.ru  
wrote:



Is it possible to have a colored prompt in mc when both panels are on ?
It's colored in a subshell when panels are off (after a couple of
Enters) but not when panels are on.


I tried that once. I wanted my root login prompt to be bright red or  
something.


What I recall is the extra characters used to color the prompt messes up  
the
line length calculations used by readline or whatever command line library  
you

use.

It's fine and all pretty looking if your command is short and doesn't go
anywhere near the right edge of the screen, but if it goes onto a second  
line

(like a fancy for... loop) everything gets messed up and becomes mostly
unusable.

So I stopped doing it and stuck with non-colored prompts.


--
Peace and Cheer
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc