From owner-freebsd-questions Tue Dec 10 17:38:13 2002 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 737C937B401 for ; Tue, 10 Dec 2002 17:38:11 -0800 (PST) Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8021143EC2 for ; Tue, 10 Dec 2002 17:38:10 -0800 (PST) (envelope-from ryan@sasknow.com) Received: from earl.sasknow.net (earl.sasknow.net [207.195.92.130]) by ren.sasknow.com (8.11.6/8.11.6) with ESMTP id gBB1c9x33649; Tue, 10 Dec 2002 19:38:09 -0600 (CST) (envelope-from ryan@sasknow.com) Received: from ren (ren.sasknow.com [207.195.92.131]) by earl.sasknow.net (8.12.6/8.12.6) with ESMTP id gBB1c8l5035133; Tue, 10 Dec 2002 19:38:08 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Tue, 10 Dec 2002 19:38:08 -0600 (CST) From: Ryan Thompson To: Jonathan Chen Cc: Adrian Penisoara , Subject: Re: Backspace and Delete keys under PuTTY In-Reply-To: <20021210194638.GA24994@grimoire.chen.org.nz> Message-ID: <20021210191414.W67344-100000@ren.sasknow.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Audit: Email processed by earl.sasknow.com filter 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 Jonathan Chen wrote to Adrian Penisoara: > On Tue, Dec 10, 2002 at 01:17:17PM +0200, Adrian Penisoara wrote: > > [...] > > > But I have Bash as the default shell. And yes, it works changing > > the Terminal / Keyboard / "Backspace key" from "Contrl-? (127)" to > > "Control-H", but the users are pissed off by the fact that Linux > > doesn't need this -- does it mean FreeBSD has broken termcap > > entries or that Linux is just stepping on the traditional > > standards ? > > It's Linux that's stepping on standards. Their default config is to > have erase=DEL. All other UNIX boxen I've used have erase=BACKASPCE. > I suspect the PUTTY writers have been heavily influenced by Linux. Ok. I'll bite. Has anyone taken the time to really fine tune PuTTY's settings to work well with FreeBSD and {n}curses apps? Somewhat ironically, the best results I have received thus far are to use xterm-color and ^H for erase. This works perfectly in tcsh/bash, but suffers somewhat in curses or ncurses programs such as PINE or lpe. Results with these settings vary depending on the application. PINE, for example, screams "Unknown Command" when I try to use Home/End/Delete/ PgUp/PgDn. With lpe, everything works except Home/End. Let me tell you, on a Dvorak keyboard, the usual ^Q and ^R aren't exactly intuitive or convenient. :-) I've tried various permutations of vt220, linux, and cons30, with changes to the other keyboard settings in PuTTY, as well as trying to nudge things with stty and termcap. So far, though, the above described configuration, with the stock FreeBSD termcap, is as close as I've come. I guess I just really haven't been irritated enough yet to start debugging control codes. ;-) Has anyone *really* figured it out? Maybe I should just throw an old Pentium "SSH client" on my desk. That doesn't really help me when I'm on site, though. :-) - Ryan -- Ryan Thompson SaskNow Technologies - http://www.sasknow.com 901-1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message