From owner-freebsd-questions@FreeBSD.ORG Sat Oct 28 02:57:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0F6616A494 for ; Sat, 28 Oct 2006 02:57:28 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96F4343D5D for ; Sat, 28 Oct 2006 02:57:25 +0000 (GMT) (envelope-from admin2@enabled.com) Received: from [172.24.241.11] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by typhoon.enabled.com (8.13.8/8.13.8) with ESMTP id k9S2vOCs086432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Oct 2006 19:57:25 -0700 (PDT) (envelope-from admin2@enabled.com) Message-ID: <4542C704.70309@enabled.com> Date: Fri, 27 Oct 2006 19:57:08 -0700 From: Noah User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Jerry McAllister References: <45425D61.6030209@enabled.com> <4542607E.8020101@mac.com> <45429451.3040706@enabled.com> <45429608.9090704@mac.com> <4542969E.1060903@enabled.com> <20061028003929.GA99333@gizmo.acns.msu.edu> In-Reply-To: <20061028003929.GA99333@gizmo.acns.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Peter A. Giessel" , freebsd-questions@freebsd.org Subject: Re: replacing ^M with emacs 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: Sat, 28 Oct 2006 02:57:28 -0000 well I am pressing control-J for return not control-M so I dont understand your rationale. Jerry McAllister wrote: >> Thanks Peter, >> >> where is the logic here? What is control-q for and what is control-j >> for? I am trying to figure out how I could have figured that out. >> > > They are ASCII characters. For example, the ^M you wanted to get > rid of is CTRL-M. There are ASCII tables in various places. > A quick search should turn up a few. The assignment of the > characters are ancient and traditional and somewhat weird by > how things are currently used, but will probably continue to stay > that way. > > Line-Feed, for example - which is that character that marks the end > of a line in text files, means it causes the printer to move the > paper up one line - in old line printers and teletypes. CTRL-M or ^M > is a RETURN (also ENTER nowdays) and that caused the print head to > return to the beginning of the line. By the time UNIX came along, > it wasn't necessary to use both characters to move the paper and print > head because those were virtual. So, they just used one character - > the line feed. But, MS-DOS and some others continued to use the > pair to mean a new line for some reason - maybe the original association > with IBM, although they didn't use ASCII, but EBCDIC - another animal. > > So, look up an ASCII chart with explanations and you can make an > educated guess on the meanings. > > ////jerry > > >> also is there a better page than the one I am using below to figure all >> these keystrokes out? >> >> http://www.math.uh.edu/~bgb/emacs_keys.html >> >> Cheers, >> >> Noah >> >> >> Peter A. Giessel wrote: >> >>> On 2006/10/27 15:20, Noah seems to have typed: >>> >>> >>>> this is the best answer. Hits it right on the head of what I want. >>>> What if I want the character to replace the ^M with a new line what do I >>>> enter in the replace field? >>>> >>>> >>> control-q control-j >>> >>> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >>