[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to make colour prompts for pdksh



On Wed, Jul 26, 2006 at 10:35:56 -0400, James Strandboge wrote:
> On Wed, 2006-07-26 at 15:42 +0200, LeVA wrote:
> > 2006. July 26. 14:32, James Strandboge:
> > > On Tue, 2006-07-25 at 22:59 +0200, LeVA wrote:
> > > Are you *sure* that the control characters have been entered
> > > correctly? It is not '^' followed by '['.  It must be the single
> > > charactor '^['.
> > >
> > Now that your pointing this out for me :) indeed I was using a '^' char 
> > followed by a '['.
> > But how can I enter that control character? What is the keycombo for it?
> 
> Check my previous email.  I don't know how to do it in vi
> (unfortunately), but it can be done in emacs.

With vi, when you are in edit mode ("-- INSERT --" etc.), you can press
<CTRL> + Q followed by <ESC>. (Release the other two keys again before
you press <ESC>.) If you use colors you will see that '^[' is shown in a
different color to indicate that it is a special character and not just
'^' + '['. It is furthermore treated as one character when you move the
cursor across it.

-- 
Regards,
          Florian



Reply to: