Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Phil's prompt is not working when LANG is set to UTF-8
- X-seq: zsh-users 12545
- From: antho.charles@xxxxxxxxx
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Phil's prompt is not working when LANG is set to UTF-8
- Date: Mon, 11 Feb 2008 16:07:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; bh=cJyszj4jqVLa0MeS7eNxCYLaGjLcs8QtnCZpQaL46qw=; b=eWk20YAZWFVYp+v2P5V2oVUMW//c1bp5FY5Vnc7TboRRvJAyX9EVT3HWJfc/IkOvxCRuQqWcICNqf+BLsBqgPWXhnRn9DH0Nq3a6lB+kJPjovJmoOymO93tLn63kY8LlUSutzapXHekpm66x7wgb46xNq122QpKA09N5fHas9bU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; b=Ieeqy5VkJiRNa/TT/ce8dQnd2nM/HOht90oZqPEb8cEmpItjy2ZBPKRR+64I1ZRMhb0hyPbRQZWBpizPtlEGWDsL4qHKu5mWp2mjP1tpOPE38wezPw21yRnRmddekI57b4h1fsvmZ0Q2WFI9fPAUlT1HD6/KUEyMp1Hr2KQKLDg=
- In-reply-to: <200802111407.m1BE77Lh004330@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080211033116.GD19613@xxxxxxxxxxxxxxxxxxxxxxx> <237967ef0802102301i71dcd71erb1a2993a7f0bd643@xxxxxxxxxxxxxx> <20080211092021.GC6965@xxxxxxxxxxxxxxxxxxxxxxx> <20080211130707.7d45f6af@news01> <20080211133743.GA28384@xxxxxxxxxxxxxxxxxxxxxxx> <200802111407.m1BE77Lh004330@xxxxxxxxxxxxxx>
Hi,
I didn't have this problem on Debian etch, but it appears when I
upgraded to lenny. It's the same problem: if I set LANG to a non utf8
encoding (fr_FR instead of fr_FR.UTF-8), RPROMPT is good, otherwise
it's partially on another line and the cusor is after RPROMPT.
(cf. http://tinyurl.com/3xjeqt)
I "solve" this problem with:
-- 8< -- 8< --
###
# See if we can use extended characters to look nicer.
if [[ $TERM != linux ]]; then
typeset -A altchar
set -A altchar ${(s..)terminfo[acsc]}
PR_SET_CHARSET="%{$terminfo[enacs]%}"
PR_SHIFT_IN="%{$terminfo[smacs]%}"
PR_SHIFT_OUT="%{$terminfo[rmacs]%}"
PR_HBAR=${altchar[q]:--}
PR_ULCORNER=${altchar[l]:--}
PR_LLCORNER=${altchar[m]:--}
PR_LRCORNER=${altchar[j]:--}
PR_URCORNER=${altchar[k]:--}
fi
-- 8< -- 8< --
I don't define those variables if I'm in a console, then the prompt
looks good but without the fancy stuff, so it's not the real answer.
(cf. http://tinyurl.com/2bjl6x)
And my consoles are already in unicode mode.
--
Anthony CHARLES
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author