From owner-freebsd-questions Sun Mar 17 19:27:53 2002 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 0EE9937B42C for ; Sun, 17 Mar 2002 19:27:45 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 5BCA1BE70; Sun, 17 Mar 2002 19:27:45 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id TAA08571; Sun, 17 Mar 2002 19:27:45 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g2I3RV305504; Sun, 17 Mar 2002 19:27:31 -0800 (PST) (envelope-from swear@blarg.net) To: "Jeff Jeter" Cc: "FreeBSD Questions" Subject: Re: Xterm doesn't accept special keys References: From: swear@blarg.net (Gary W. Swearingen) Date: 17 Mar 2002 19:27:31 -0800 In-Reply-To: Message-ID: Lines: 44 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 "Jeff Jeter" writes: > When i try to use keys other than letters, enter, and arrows, such as home, > end, etc xterm just outputs a ~. When i am not running X these keys work. > What do i do to enable these keys. I have tried other terminal emulators > (in ports) and had the same result. From my .Xresources (note the comments): XTerm*VT100.Translations: #override \n\ Ctrl Up: scroll-back(1,line) \n\ Ctrl Down: scroll-forw(1,line) \n\ Shift Up: scroll-back(1,page) \n\ Shift Down: scroll-forw(1,page) \n\ Meta Up: scroll-back(1,halfpage) \n\ Meta Down: scroll-forw(1,halfpage) \n\ Shift : select-start() \n\ Shift : select-extend() \n\ Shift : select-end(SECONDARY,CLIPBOARD) \n\ Shift : insert-selection(SECONDARY,CLIPBOARD) \n\ Shift : start-extend() \n\ Shift : select-extend() \n\ Shift : select-end(SECONDARY,CLIPBOARD) ! Insert: string("cd -\n") \n\ ! Delete: string("\025") \n\ ! Home: string("cd ") \n\ ! End: string("savepower") \n\ ! Prior: string("ps ax\n") \n\ ! Next: string("ps ax | grep ") IIRC, defining keys like Home and End this way will cause problems with terminal programs which expect the normal definitions. You might get what you're looking for (but didn't specify) by using you're shell's features that allow defining keys ("bind" in ksh). > Also how do i make xterm update whats in the path (so i don't need to open a > new terminal after installation)? I don't understand the question, but xterm won't change the PATH variable. That can be changed in one of your shell start up scripts. You CAN tell xterm (with -ls or +ls option) whether to start a shell login-style if you want to put the setting only in a login shell startup script. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message