From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5927 invoked by alias); 23 Feb 2015 01:22:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19894 Received: (qmail 16068 invoked from network); 23 Feb 2015 01:22:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=NqFmqHZM c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=0HtSIViG9nkA:10 a=NSDVTUMdIOzVrQu0O6gA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150222172204.ZM19090@torch.brasslantern.com> Date: Sun, 22 Feb 2015 17:22:04 -0800 In-reply-to: <4497961424642126@web27g.yandex.ru> Comments: In reply to ZyX "Re: ANSI bg colour outside of prompt area" (Feb 23, 12:55am) References: <20150222132310.GA18377@wintermute> <150222111007.ZM18687@torch.brasslantern.com> <4497961424642126@web27g.yandex.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" Subject: Re: ANSI bg colour outside of prompt area MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 23, 12:55am, ZyX wrote: } Subject: Re: ANSI bg colour outside of prompt area } } > That's intentional so that a misbehaving program can't e.g. cause your } > prompt to become invisible by changing the background to the same color } > as your prompt foreground. } } I am wondering whether same thing may apply to \C-n (0x0E, Shift Out). } It is the second annoying thing that may garble everything, much more } annoying since it changes the view of most characters and I have to } type either `echo $'\ec'` or `echo $'\c-o'`. } } I mean, whether it makes sense to output \C-o to drop SO mode by } default just like it is done currently with colors. Hrm. The Lock Shift feature to chose character sets is a lot less common, the prompt code would actually have to check that the G0 capability is present in the terminal definition, etc. I'm not personally familiar with the terminal handling code in prompt.c ... on brief examiniation I can't even find where it's emitting color reset and clear-screen. Still, there's no reason you can't put $'%{\CO%}' at the front of $PS1. Or putting that in $PROMPT_EOL_MARK might work as well.