Date: Sat, 17 Nov 2001 08:08:33 -0600 From: Mike Meyer <mwm@mired.org> To: parv <parv_@yahoo.com> Cc: questions@freebsd.org Subject: Re: how to modify a "word" definition Message-ID: <15350.28513.309480.583151@guru.mired.org> In-Reply-To: <25403662@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
parv <parv_@yahoo.com> types: > i need help to search for information on how to modify/change > a program's definition of a "word". the programs that i am > most interested are: bash 2.04, vi (bsd), mutt "reader", slrn > "reader". [...] > my definition of a word would be: > a character sequence which does not any white space and > other special character(s). the special characters are > adjustable. That's reasonable. The only real questions are whether you can adjust the special characters, and how you do so if you can. The answer is usually in the man pages - though it may not be one you like. > (ps: if you tried to "select" (copy in X) the above url, you would > know my pain.) This makes me think you're talking about select in X. That makes the programs - definitely for bash, and probably for the others as well, unless they've changed since I last used them - irrelevant. What handles selection is the *terminal emulator* you're running, so that's the man page you need to look at. I use good old xterm, and for that, the manual section in question is "Character classes". It's to long to quote completely, but I've been using it for years and it works like a charm. The relevant entry in my .Xresources file is "XTerm*charClass: 33-47:48,58-64:48,91-96:48,123-126:48". If you're using one of the alternative terminal emulators, you'll have to check their manual pages. Some of them dumped "relatively unusused" features like this, so it may not be there. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15350.28513.309480.583151>