From owner-freebsd-arch Thu Nov 30 7: 3: 6 2000 Delivered-To: freebsd-arch@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id 465AE37B400 for ; Thu, 30 Nov 2000 07:02:59 -0800 (PST) Received: by peorth.iteration.net (Postfix, from userid 1001) id 2C835573A5; Thu, 30 Nov 2000 09:03:01 -0600 (CST) Date: Thu, 30 Nov 2000 09:03:01 -0600 From: "Michael C . Wu" To: Kirk McKusick Cc: Jordan Hubbard , arch@FreeBSD.ORG Subject: Re: Rui Pedro Mendes Salgueiro: erase2 patch (was: 4.2-RELEASE ISO image for x86 updated.) Message-ID: <20001130090301.D16834@peorth.iteration.net> Reply-To: "Michael C . Wu" References: <52694.975362925@winston.osd.bsdi.com> <200011272241.OAA93364@beastie.mckusick.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200011272241.OAA93364@beastie.mckusick.com>; from mckusick@mckusick.com on Mon, Nov 27, 2000 at 02:41:05PM -0800 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Nov 27, 2000 at 02:41:05PM -0800, Kirk McKusick scribbled: | When we first implemented termios at CSRG, we had an erase2 | character. Mike Karels was vehemently opposed to it, and | insisted that it be deleted before we did our next release | (4.3-tahoe if I remember correctly). I am of the opinion that | it is a good idea, and should be there. I do not believe that | we need/want a general aliasing facility as erase is really | the only character for which there is widespead disagreement | over which character to use. So, my take would be to add | erase2 and be done with it. /me putting on I18N crybaby hat This feature has one very important aspect that I18N can use very well. Currently, for two-byte characters, we need to put delete twice in console/tty/et al. The best way to solve this would be having the tty determine whethere it is a two-byte or one-byte character. Then the tty determines whether to push ^H/^? once or twice depending on the character. It would be easy to simply alias backspace/delete to two "^H/^?"'s when we meet a two-byte character. Please do not lock us into hardcoding these erase2 characters and assume that everybody uses English only. I am not pointing fingers, but this mistake was made many years ago in all *nix systems, perhaps we should not hardcode this kind of stuff again. :) /me hides and takes off all hats -- +------------------------------------------------------------------+ | keichii@peorth.iteration.net | keichii@bsdconspiracy.net | | http://peorth.iteration.net/~keichii | Yes, BSD is a conspiracy. | +------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message