Subject: Re: command-line editing and "standard" shells....
To: Phil Nelson <phil@cs.wwu.edu>
From: Soren S. Jorvang <soren@t.dk>
List: current-users
Date: 03/20/1999 01:58:15
On Fri, Mar 19, 1999 at 04:11:24PM -0800, Phil Nelson wrote:
> ->current/working/dir
> machine[37]:  
> 
> as my prompt.  I couldn't see any way to get ksh to do a multi-line
> prompt.  I put in "....\n..." or "....^j...."  (the real character)
> but I always got a single line prompt.
> 
> Does any one know how to get multi-line prompts?

Well..

host=`hostname -s`
PS1='->`pwd`
$host[!]: '

I don't think ksh has quite the number of internal prompt convenience
variables that bash has, though. 

The man page also says something about inserting magic characters
to get the line length right or something. Better look for yourself.


-- 
Soren