From owner-freebsd-questions Sat Nov 17 20: 9:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 4099537B416 for ; Sat, 17 Nov 2001 20:09:07 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 9D4AFBD2D; Sat, 17 Nov 2001 20:09:06 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id UAA23583; Sat, 17 Nov 2001 20:09:06 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id fAI47Ua72055; Sat, 17 Nov 2001 20:07:30 -0800 (PST) (envelope-from swear@blarg.net) To: parv , questions@FreeBSD.ORG Subject: Re: how to modify a "word" definition References: <25403662@toto.iv> <15350.28513.309480.583151@guru.mired.org> <20011117140156.A82747@moo.holy.cow> <20011117141351.D63067@blossom.cjclark.org> From: swear@blarg.net (Gary W. Swearingen) Date: 17 Nov 2001 20:07:29 -0800 In-Reply-To: <20011117141351.D63067@blossom.cjclark.org> Message-ID: <5kzo5k4t8e.o5k@localhost.localdomain> Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Look for 'IFS' in bash(1). I second that opinion, except to point out that there are at least two kinds of "words" in shells. "IFS" works for command line "words" as parsed when interpreted, at least for my shell (ksh), doesn't work for command line editing commands which involve "words" (like delete last word). I see no control for these kind of words. If you want really good control over mousing things (in or out of X), use the XEmacs (or similar) shell mode where you can make the mouse recognize any thing you want and even have it (with ctrl, shift, alt, extra characters, etc.) grab words, lines, URLs, filenames, or whatever, and have it run commands (eg "Netscape -remote", "xemacs --read-only") on the selection. (Unfortunately, the terminal emulation is not as good as xterm, so I wind up having to use xterm for running interactive non-GUI programs. It has a second terminal emulator which is is good enough for such programs but I don't use it for reasons I forget.) Of course, it's also much better than xterm for keybanging of shell command input and output. You have all the standard editing features and more. Searching of the input+output history (arbitrarily long) is especially handy. Another handy command is "delete output of last shell command" (ctrl-c ctrl-o). (The special shell-mode commands all start with ctrl-c, so "ctrl-c ctrl-c" is xterm's "ctrl-c".) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message