Re: man pdksh, I don't understand this - [ was: how to make colour prompts for pdksh ]

2006-07-27 Thread LeVA
2006. July 27. 00:40, LeVA: Here I will post a solution and an explanation which was provided by Brian T. Brunner in a private mail conversation. - START OF QUOTE - > > > Hi! > > > > > > > > > "... Note that since the command line editors try to figure out > > > how > > > long the prompt is (s

Re: how to make colour prompts for pdksh

2006-07-26 Thread LeVA
2006. July 27. 00:28, Derek Martin: > On Wed, Jul 26, 2006 at 09:47:39PM +0200, LeVA wrote: > > > So either set konsole up to launch ksh as a login shell, or set > > > ENV somewhere. You can test this with: > > > > > > $ ENV="~/.profile" konsole > > > > > > Or launch konsole, and do: > > > $ ksh -

man pdksh, I don't understand this - [ was: how to make colour prompts for pdksh ]

2006-07-26 Thread LeVA
Hi! "... Note that since the command line editors try to figure out how long the prompt is (so they know how far it is to edge of the screen), escape codes in the prompt tend to mess things up. ..." Okay, I get it, I'm using escape codes, so I need the following hack. "... You can tell the

Re: how to make colour prompts for pdksh

2006-07-26 Thread Derek Martin
On Wed, Jul 26, 2006 at 09:47:39PM +0200, LeVA wrote: > > So either set konsole up to launch ksh as a login shell, or set ENV > > somewhere. You can test this with: > > > > $ ENV="~/.profile" konsole > > > > Or launch konsole, and do: > > $ ksh -l > > The .profile is always gets parsed (both in a

Re: how to make colour prompts for pdksh

2006-07-26 Thread LeVA
2006. July 26. 16:35, James Strandboge: > 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 '['

Re: how to make colour prompts for pdksh

2006-07-26 Thread Derek Martin
On Wed, Jul 26, 2006 at 04:55:02PM +0200, Florian Kulzer wrote: > > > 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

Re: how to make colour prompts for pdksh

2006-07-26 Thread James Strandboge
On Wed, 2006-07-26 at 16:55 +0200, Florian Kulzer wrote: > With vi, when you are in edit mode ("-- INSERT --" etc.), you can press > + Q followed by . (Release the other two keys again before > you press .) If you use colors you will see that '^[' is shown in a > different color to indicate that i

Re: how to make colour prompts for pdksh

2006-07-26 Thread Florian Kulzer
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

Re: how to make colour prompts for pdksh

2006-07-26 Thread James Strandboge
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 '^['. > > >

Re: how to make colour prompts for pdksh

2006-07-26 Thread James Strandboge
On Wed, 2006-07-26 at 08:32 -0400, James Strandboge wrote: > It works fine here. Two things: Actually, there is one more. Check your TERM variable. I use gnome-terminal, which always sets TERM to 'xterm'. This is fine for GNU/Linux boxes, but ssh'ing into OpenBSD requires that TERM be set to '

Re: how to make colour prompts for pdksh

2006-07-26 Thread LeVA
2006. July 26. 14:32, James Strandboge: > On Tue, 2006-07-25 at 22:59 +0200, LeVA wrote: > > 2006. July 25. 21:20, James Strandboge: > > > So a no frills color prompt without the title might be: > > > PS1='^[[0;[EMAIL PROTECTED] ${PWD##*/}]$^[[m ' > > > > Thanks a lot for the reply, I've tried it a

Re: how to make colour prompts for pdksh

2006-07-26 Thread James Strandboge
On Tue, 2006-07-25 at 22:59 +0200, LeVA wrote: > 2006. July 25. 21:20, James Strandboge: > > So a no frills color prompt without the title might be: > > PS1='^[[0;[EMAIL PROTECTED] ${PWD##*/}]$^[[m ' > > > Thanks a lot for the reply, I've tried it and it stays the same :\ just > spits out the char

Re: how to make colour prompts for pdksh

2006-07-25 Thread LeVA
2006. July 25. 21:20, James Strandboge: > On Tue, 2006-07-25 at 19:48 +0200, LeVA wrote: > ... > > > This is working, so I started from there. I've added the colour > > codes, but pdksh doesn't handle them. > > > > C'mon, I can't beleive that nobody is using the korn shell :) > > This is not a tuto

Re: how to make colour prompts for pdksh

2006-07-25 Thread James Strandboge
On Tue, 2006-07-25 at 19:48 +0200, LeVA wrote: ... > This is working, so I started from there. I've added the colour codes, > but pdksh doesn't handle them. > > C'mon, I can't beleive that nobody is using the korn shell :) This is not a tutorial or anything and most of this can be found googling

Re: how to make colour prompts for pdksh

2006-07-25 Thread Mumia W.
On 07/25/2006 11:29 AM, Leinier C. Salfran wrote: El mar, 25-07-2006 a las 17:01 +0200, LeVA escribió: Hi! I want to make my shell's prompt colourful :) I'm using pdksh. There are tons of information provided by google, but none of them are working. Setting my prompt to: PS1=$'\E[31m'[EMAIL

Re: how to make colour prompts for pdksh

2006-07-25 Thread LeVA
2006. July 25. 19:48, LeVA: > 2006. July 25. 18:29, Leinier C. Salfran: > > El mar, 25-07-2006 a las 17:01 +0200, LeVA escribió: > > > Hi! > > > > > > I want to make my shell's prompt colourful :) > > > > > > I'm using pdksh. There are tons of information provided by > > > google, but none of them

Re: how to make colour prompts for pdksh

2006-07-25 Thread LeVA
2006. July 25. 18:51, Santhosh Loganathan: > hello sir, > They are different types packages that provides you > the solution. if you want in shell to be displayed in color means > just use package vim-enhanced(by installing ) and reboot the machine > as per linux idea. try to instal

Re: how to make colour prompts for pdksh

2006-07-25 Thread LeVA
2006. July 25. 18:29, Leinier C. Salfran: > El mar, 25-07-2006 a las 17:01 +0200, LeVA escribió: > > Hi! > > > > I want to make my shell's prompt colourful :) > > > > I'm using pdksh. There are tons of information provided by google, > > but none of them are working. > > > > Setting my prompt to: >

Re: how to make colour prompts for pdksh

2006-07-25 Thread Santhosh Loganathan
hello sir,     They are different types packages that provides you the solution. if you want in shell to be displayed in color means just use package vim-enhanced(by installing ) and reboot the machine as per linux idea. try to install the latest versions..     

Re: how to make colour prompts for pdksh

2006-07-25 Thread Leinier C. Salfran
El mar, 25-07-2006 a las 17:01 +0200, LeVA escribió: > Hi! > > I want to make my shell's prompt colourful :) > > I'm using pdksh. There are tons of information provided by google, but > none of them are working. > > Setting my prompt to: > PS1=$'\E[31m'[EMAIL PROTECTED]'\E[1;33m'`hostname -s`:$

how to make colour prompts for pdksh

2006-07-25 Thread LeVA
Hi! I want to make my shell's prompt colourful :) I'm using pdksh. There are tons of information provided by google, but none of them are working. Setting my prompt to: PS1=$'\E[31m'[EMAIL PROTECTED]'\E[1;33m'`hostname -s`:$'\E[0m>' makes my prompt: [EMAIL PROTECTED];33mleva:$\E[0m> The colou