From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8029 invoked from network); 18 Dec 2007 18:17:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FROM_LOCAL_NOVOWEL autolearn=no version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Dec 2007 18:17:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 15041 invoked from network); 18 Dec 2007 18:17:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Dec 2007 18:17:13 -0000 Received: (qmail 15098 invoked by alias); 18 Dec 2007 18:17:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24284 Received: (qmail 15079 invoked from network); 18 Dec 2007 18:17:09 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Dec 2007 18:17:09 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 0DBAE8058F54 for ; Tue, 18 Dec 2007 19:14:01 +0100 (CET) Received: from cbsrstar.ucr.edu (cbsrstar.ucr.edu [138.23.243.67]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Tue, 18 Dec 2007 19:14:00 +0100 (CET) Received: from [192.168.0.116] (cbsr29.ucr.edu [138.23.143.222]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by cbsrstar.ucr.edu (Postfix) with ESMTP id A6A58351C020; Tue, 18 Dec 2007 10:16:55 -0800 (PST) Message-ID: <47680E97.6050505@spambox.us> Date: Tue, 18 Dec 2007 10:16:55 -0800 From: Chuck User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Peter Stephenson CC: zsh-workers@sunsite.dk Subject: Re: zsh in screen - bad erase key ^@ instead of ^H or ^? References: <47677243.9030309@spambox.us> <20071218102924.0a5bcd0a@news01> In-Reply-To: <20071218102924.0a5bcd0a@news01> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Peter Stephenson wrote: > On Mon, 17 Dec 2007 23:09:55 -0800 > Chuck wrote: > >> How do I tell zsh in screen that my backspace key is ^H or ^? instead of >> ^@ as it currently thinks? stty erase '^@' fails as does using tset. >> > > It may be you're doing the opposite of what you need... > > >> ^v(bs key) tells me bs is currently ^@. >> > > ...this indicates the backspace key currently *is* sending ^@, because > the ^V stops zsh interpreting the character. > > So instead, try making it so that it sends ^H or ^?: "stty erase '^?'". > (This is likely to be some artefact of screen since zsh doesn't > change special characters of that sort.) > Unfortunately, bs really is sending ^@ in screen and I cannot change it. stty erase '^H' or '^?' doesn't change bs at all. It's as if the key mapping at a lower level is screwed up. > If for some reason you're stuck with the backspace key sending ^@, you > can use "bindkey" to tell zsh to use it for functions usually bound with ^? > and ^h, but you shouldn't need to do that. > I added a bindkey "^@" "backward-delete-char" in my zshrc when TERM = screen and I can hit bs and it works in zsh proper. If I run vim though, my editor of choice, the bs key just throws me out of edit mode instead of deleting the previous char.