From owner-freebsd-questions@FreeBSD.ORG Tue May 27 07:00:41 2003 Return-Path: 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 0C1F337B401 for ; Tue, 27 May 2003 07:00:41 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 451E343F93 for ; Tue, 27 May 2003 07:00:40 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.9/8.12.9) with ESMTP id h4RDq8Og025805; Tue, 27 May 2003 09:52:08 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.9/8.12.9/Submit) id h4RDq3f4025804; Tue, 27 May 2003 09:52:03 -0400 (EDT) From: Jerry McAllister Message-Id: <200305271352.h4RDq3f4025804@clunix.cl.msu.edu> To: keramida@ceid.upatras.gr (Giorgos Keramidas) Date: Tue, 27 May 2003 09:52:03 -0400 (EDT) In-Reply-To: <20030526065838.GC28797@gothmog.gr> from "Giorgos Keramidas" at May 26, 2003 09:58:38 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Jerry McAllister cc: Stephan Weaver cc: questions@freebsd.org Subject: Re: Screen and VI X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 14:00:41 -0000 > > > > > > Anyone know why, while in screen if i move the cursor (arrow key on > > > keyboard) right i get the letter C ? (inside vi) > > > > Probably the arrow key sends ESC-C as its code. something eats the ESC > > and that leaves C. > > > Maybe someone else will know the actuall setting information. > > I usually fire up screen(1) in my console ttys or xterm windows, and > then set TERM=vt220. This is monochrome, but all the arrow keys work > fine. I even managed to make ALL the special keys like Insert, DEL, > Home, End, PageDown and PageUp to work 'as expected' in Emacs with the > following bindings in my .emacs file: Whew, You're more ambitious than I am. I just learned to use the letter keys to do all that. See: http://scnc.k12.mi.us/howto/edit/vi.html for the notes we foist on our users. ////jerry > > ;; Key bindings. > (global-set-key "\C-c," 'goto-line) > (global-set-key "\C-cw" 'delete-trailing-whitespace) > (global-set-key "\C-xrs" 'bookmark-save) > (global-set-key "\C-s" 'isearch-forward-regexp) > (global-set-key "\C-r" 'isearch-backward-regexp) > > ;; Some bindings to make using Emacs nicer on vt220 terminals. > (global-set-key "\C-h" 'backward-delete-char) > (global-set-key [delete] 'delete-char) > (global-set-key [deletechar] 'backward-delete-char) > (global-set-key "\M-\C-h" 'backward-kill-word) > (global-set-key [home] 'beginning-of-line) > (global-set-key [find] 'beginning-of-line) > (global-set-key [end] 'end-of-line) > (global-set-key [select] 'end-of-line) > > - Giorgos