local text
typeset -gA psvmodetext
if [[ $1 == "-t" ]]; then
shift
psvmodetext[i]="i"
psvmodetext[c]="%K{$2}%F{$1}n"
psvmodetext[r]="%K{$4}%F{$3}r"
psvmodetext[im]="${psvmodetext[i]}m"
psvmodetext[cm]="${psvmodetext[c]}m"
else
psvmodetext[i]=""
psvmodetext[c]="%K{$2}%F{$1}"
psvmodetext[r]="%K{$4}%F{$3}"
psvmodetext[im]="${psvmodetext[i]}[m] "
psvmodetext[cm]="${psvmodetext[c]}[m] "
fi