Wow, this releases apparently fixed one of my really major gripes with the 
multiline mode screwing up the rendering of large text blocks on the prompt 
(e.g. recalling them from history, scrolling up and down). 

Rendering errors of ANSI formattings are fixed, too, apart from terminal 
clearing (<ESC><CTRL>+L), as in this shot:

http://www.storageserver.be/images/kshprompt.png

Thanks for your effort, it's appreciated!
-mg


Prompt script
======================
# Resolve stuff not available in ksh93
P_HOST=`uname -n`
P_UID=`id -u`

# Colors
DIETTILDE='${PWD/~(El)${HOME}/\~}'
PGREEN=$'\033[1;32m'
PRED=$'\033[0;31m'
PGREY=$'\033[0;37m'
PNEUT=$'\033[0m'

# Yeah, guess what
PCOLOR="${PGREEN}"
if [ P_UID -eq 0 ]
then
PCOLOR="${PRED}"
fi

PS1="${P_HOST}${PGREY}:${PNEUT}${DIETTILDE} ${PCOLOR}>${PNEUT} "
 
 
This message posted from opensolaris.org

Reply via email to