From owner-freebsd-questions@FreeBSD.ORG Sun Feb 4 13:38:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8903F16A406 for ; Sun, 4 Feb 2007 13:38:14 +0000 (UTC) (envelope-from jgordeev@dir.bg) Received: from dir.bg (mail.dir.bg [194.145.63.28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A2D813C461 for ; Sun, 4 Feb 2007 13:38:13 +0000 (UTC) (envelope-from jgordeev@dir.bg) Received: from [89.190.198.138] (account jgordeev HELO [10.102.9.50]) by dir.bg (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 43593747 for freebsd-questions@freebsd.org; Sun, 04 Feb 2007 14:38:10 +0200 Message-ID: <45C5D579.5070502@dir.bg> Date: Sun, 04 Feb 2007 14:45:45 +0200 From: Jordan Gordeev User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20061031 X-Accept-Language: bg, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20070203001953.GA13965@ayn.mi.celestial.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Backspaces converted to ^? -- want to get rid of ^? -_-... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 13:38:14 -0000 youshi10@u.washington.edu wrote: > On Fri, 2 Feb 2007, Bill Campbell wrote: > >> On Fri, Feb 02, 2007, youshi10@u.washington.edu wrote: >> >>> Ok, this happens regularly on my FreeBSD box at home when I'm not >>> su'ed in as root using vim, or the SuSe box at work when I VNC >>> into >>> it (using vim once again), and I'm frankly quite tired of lame >>> control characters screwing up my day. Is there any way to fix >>> this >>> behavior so pressing backspace erases a character, not prints >>> out a >>> ^? character? >> >> >> This is generally a function of your terminal emulator or xterm and is a >> carryover from old DEC terminal's stupid keyboard mappings. >> >> The attached XTerm file put in $HOME/XTerm will get xterms to send ctrl-h >> from the backspace key. Other programs like putty typically have a >> keyboard configuration that permits setting the backspace key to send >> either ctrl-H or a DEL character. >> >> I leave it as an exercise for the student to figure out my other >> tweaks in >> this file :-). >> >> Bill >> -- >> INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software, LLC >> URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way >> FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) >> 236-1676 >> >> ``Microsoft IIS has more holes than a wheel of Swiss Cheese after a >> shotgun >> blast'' -- John Dvorak > > > Hmmm... you have a lot of different tweaks in there. > I'll definitely implement the delete thing as soon as possible. > Thanks! > -Garrett > The correct way to fix is to use stty(1). For example: stty erase2 '^?'