From owner-freebsd-questions@FreeBSD.ORG Sat Feb 3 00:15:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B7C616A401 for ; Sat, 3 Feb 2007 00:15:22 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id CCFB813C461 for ; Sat, 3 Feb 2007 00:15:21 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id 68E706861303E; Fri, 2 Feb 2007 16:19:53 -0800 (PST) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WJHsBZgMXs2O; Fri, 2 Feb 2007 16:19:53 -0800 (PST) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id 3DBCE68613030; Fri, 2 Feb 2007 16:19:53 -0800 (PST) Date: Fri, 2 Feb 2007 16:19:53 -0800 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20070203001953.GA13965@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: Backspaces converted to ^? -- want to get rid of ^? -_-... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 00:15:22 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 02, 2007, youshi10@u.washington.edu wrote: > Ok, this happens regularly on my FreeBSD box at home when I'm not > su'ed in as root using vim, or the SuSe box at work when I VNC into > it (using vim once again), and I'm frankly quite tired of lame > control characters screwing up my day. Is there any way to fix this > behavior so pressing backspace erases a character, not prints out a > ^? character? This is generally a function of your terminal emulator or xterm and is a carryover from old DEC terminal's stupid keyboard mappings. The attached XTerm file put in $HOME/XTerm will get xterms to send ctrl-h from the backspace key. Other programs like putty typically have a keyboard configuration that permits setting the backspace key to send either ctrl-H or a DEL character. I leave it as an exercise for the student to figure out my other tweaks in this file :-). Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software, LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``Microsoft IIS has more holes than a wheel of Swiss Cheese after a shotgun blast'' -- John Dvorak --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=XTerm ! !! !! SAMPLE .Xdefaults / app-defaults RESOURCE SPECIFICATIONS FOR XTERM !! ! ! ! !! !! set default tty mode. !! ! !XTerm*ttyModes: intr ^? erase ^H kill ^U ! ! ! !! !! modify mouse functionality so that "Shift " has the same !! functionality as "". !! !! The Ctrl xterm window menu CANNOT be popped up using !! Shift Ctrl !! ! !*VT100*translations: #override\ ! Shift : insert-selection(PRIMARY, CUT_BUFFER0) \n\ ! Button1 : insert-selection(PRIMARY, CUT_BUFFER0) ! !*VT100*Scrollbar*translations: #override\ ! Shift : StartScroll(Continuous) MoveThumb() NotifyThumb() \n\ ! Shift : MoveThumb() NotifyThumb() \n\ ! Button1 : StartScroll(Continuous) MoveThumb() NotifyThumb() \n\ ! Button1 : MoveThumb() NotifyThumb() ! ! ! !! !! menu resources !! ! !*SimpleMenu*BackingStore: NotUseful !*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-* !*SimpleMenu*menuLabel.vertSpace: 100 !*SimpleMenu*HorizontalMargins: 16 !*SimpleMenu*Sme.height: 16 ! !*SimpleMenu*Cursor: left_ptr !*mainMenu.Label: Main Options !*mainMenu*securekbd*Label: Secure Keyboard !*mainMenu*allowsends*Label: Allow SendEvents !*mainMenu*logging*Label: Log to File !*mainMenu*redraw*Label: Redraw Window !*mainMenu*suspend*Label: Send STOP Signal !*mainMenu*continue*Label: Send CONT Signal !*mainMenu*interrupt*Label: Send INT Signal !*mainMenu*hangup*Label: Send HUP Signal !*mainMenu*terminate*Label: Send TERM Signal !*mainMenu*kill*Label: Send KILL Signal !*mainMenu*quit*Label: Quit ! !*vtMenu.Label: VT Options !*vtMenu*scrollbar*Label: Enable Scrollbar !*vtMenu*jumpscroll*Label: Enable Jump Scroll !*vtMenu*reversevideo*Label: Enable Reverse Video !*vtMenu*autowrap*Label: Enable Auto Wraparound !*vtMenu*reversewrap*Label: Enable Reverse Wraparound !*vtMenu*autolinefeed*Label: Enable Auto Linefeed !*vtMenu*appcursor*Label: Enable Application Cursor Keys !*vtMenu*appkeypad*Label: Enable Application Keypad !*vtMenu*scrollkey*Label: Scroll to Bottom on Key Press !*vtMenu*scrollttyoutput*Label: Scroll to Bottom on Tty Output !*vtMenu*allow132*Label: Allow 80/132 Column Switching !*vtMenu*cursesemul*Label: Enable Curses Emulation !*vtMenu*visualbell*Label: Enable Visual Bell !*vtMenu*marginbell*Label: Enable Margin Bell !*vtMenu*altscreen*Label: Show Alternate Screen !*vtMenu*softreset*Label: Do Soft Reset !*vtMenu*hardreset*Label: Do Full Reset !*vtMenu*tekshow*Label: Show Tek Window !*vtMenu*tekmode*Label: Switch to Tek Mode !*vtMenu*vthide*Label: Hide VT Window ! !*fontMenu.Label: VT Fonts !*fontMenu*fontdefault*Label: Default !*fontMenu*font1*Label: 6x10 !*VT100*font1: 6x10 !*fontMenu*font2*Label: 6x12 !*VT100*font2: 6x12 !*fontMenu*font3*Label: 9x15 !*VT100*font3: 9x15 !*fontMenu*font4*Label: 10x20 !*VT100*font4: 10x20 !*fontMenu*fontescape*Label: Escape Sequence !*fontMenu*fontsel*Label: Selection !!fontescape and fontsel overridden by application ! !*tekMenu.Label: Tek Options !*tekMenu*tektextlarge*Label: Large Characters !*tekMenu*tektext2*Label: #2 Size Characters !*tekMenu*tektext3*Label: #3 Size Characters !*tekMenu*tektextsmall*Label: Small Characters !*tekMenu*tekpage*Label: PAGE !*tekMenu*tekreset*Label: RESET !*tekMenu*tekcopy*Label: COPY !*tekMenu*vtshow*Label: Show VT Window !*tekMenu*vtmode*Label: Switch to VT Mode !*tekMenu*tekhide*Label: Hide Tek Window ! *tek4014*fontLarge: 10x20 *tek4014*font2: 9x15 *tek4014*font3: 6x13 *tek4014*fontSmall: 6x10 XTerm*font: 10x20 XTerm*pointerShape: arrow XTerm*termName: xterm XTerm*blink: true XTerm*loginShell: true XTerm*scrollBar: true ! XTerm*cursorColor: SlateBlue XTerm*cursorColor: red3 XTerm*backarrowKeyIsErase: false !XTerm*termName: xterm-color XTerm*background: Grey95 !XTerm*background: AntiqueWhite !XTerm*background: seashell2 !XTerm*background: ivory2 --cNdxnHkX5QqsyA0e--