Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314AbWLQJmW (ORCPT ); Sun, 17 Dec 2006 04:42:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752315AbWLQJmW (ORCPT ); Sun, 17 Dec 2006 04:42:22 -0500 Received: from tmailer.gwdg.de ([134.76.10.23]:47351 "EHLO tmailer.gwdg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbWLQJmV (ORCPT ); Sun, 17 Dec 2006 04:42:21 -0500 Date: Sun, 17 Dec 2006 10:40:45 +0100 (MET) From: Jan Engelhardt To: Stephen Clark cc: Pavel Machek , James Lockie , Kernel Mailing List Subject: Re: [Fwd: escape key] In-Reply-To: <45849497.7070206@seclark.us> Message-ID: References: <1166058290.2964.15.camel@monteirov> <20061213214140.df6111f5.randy.dunlap@oracle.com> <4580E985.2090208@lockie.ca> <20061216084542.GD4049@ucw.cz> <45849497.7070206@seclark.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1313 Lines: 39 On Dec 16 2006 19:51, Stephen Clark wrote: > Jan Engelhardt wrote: >> >> It's something between a misdesign and a misconfiguration of the ESC key. >> >> In other words, many unices make ESC generate ^[, the general >> terminal escape character that is _also_ generated by keys like "up", >> ^[[A. >> > > do man ascii - ESC is 0x1b. > Thats what the esc key should generate - it sometimes echoed as ^[ because the > [ = 0x5b Ok I hoped people would be smart enough to figure, but let me rephrase in two ways: Many unices generate "\x1b" (^[) for ESC, which is also generated by keys like "up", which generates "\x1b[A" (^[[A) >> MS-DOS, or rather QBASIC's, Turbo BASIC's and other implementation of >> keys, does not have this "bug": here ESC generates "\x1B" and "up" >> generates "\x00H" IIRC. There is no key defined to generate "\x00". >> => All fits nicely. And QB generates "\x1b" (^[) while "up" generates "\x00H" (^@H). Hope this makes things more clear - I interchangably used the ^ and the \ notation. Sorry if that confused anyone. -`J' -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/