From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Bronson Newsgroups: gmane.emacs.devel Subject: Re: term/screen.el - screen terminfo/color setup Date: Fri, 18 Nov 2011 16:29:24 -0500 Message-ID: References: <1318625047-sup-4296@leandros> <1318783815-sup-295@leandros> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1321651775 15325 80.91.229.12 (18 Nov 2011 21:29:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2011 21:29:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Raitza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 18 22:29:30 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RRW02-0008OR-C4 for ged-emacs-devel@m.gmane.org; Fri, 18 Nov 2011 22:29:30 +0100 Original-Received: from localhost ([::1]:41581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRW01-00068T-Oy for ged-emacs-devel@m.gmane.org; Fri, 18 Nov 2011 16:29:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRVzz-00068B-DQ for emacs-devel@gnu.org; Fri, 18 Nov 2011 16:29:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRVzy-0002Nn-8O for emacs-devel@gnu.org; Fri, 18 Nov 2011 16:29:27 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:34202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRVzx-0002Nc-Nb for emacs-devel@gnu.org; Fri, 18 Nov 2011 16:29:26 -0500 Original-Received: by wwe32 with SMTP id 32so4642699wwe.30 for ; Fri, 18 Nov 2011 13:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RBYAEnRkBFcB5vkGlJnQFeTIe52JsQYkhJjio5pS+EE=; b=PBGQCbB+xZj+6ahM/xg4oO/aqmQCj4gY4nF9+yMHf1zz2sN+7/Aalsvmp9aA8vnEaN 6SJx3RJmnS/F/gV7zLfHYTzIcUF2cCPqoorwVeBMzYjkbGZfL51d8nIPD0HaiVT1Yf2F aOM3gA4buYGN6VMBUOYoQAVja0QyHIy4MyIVI= Original-Received: by 10.227.199.132 with SMTP id es4mr3201778wbb.5.1321651764567; Fri, 18 Nov 2011 13:29:24 -0800 (PST) Original-Received: by 10.180.87.104 with HTTP; Fri, 18 Nov 2011 13:29:24 -0800 (PST) In-Reply-To: <1318783815-sup-295@leandros> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146093 Archived-At: On Sun, Oct 16, 2011 at 12:59 PM, Michael Raitza wrote: > Hi, > > the screen.el in bzr is incomplete as it just tries to impersonate xterm. > The screen terminfo description defines its own (different from e.g. > xterm) key bindings. As you can see my solution makes use of the > COLORTERM environment variable (as does xterm.el itself) and correctly > specifies the key bindings. > > One question: According to term/README the key binding for END should be > [end], but everyone else seems to specify [select] there (See comment > below in screen.el). Which one is correct? So, you're saying that emacs can't just figure it out from the terminfo and the following: % cat ~/.emacs/term/screen.el ;;; From http://www.xvx.ca/~awg/emacs-colors-howto.txt ;;; This is for GNU Emacs 22 (defun terminal-init-screen () "Terminal initialization function for screen." ;; Use the xterm color initialization code. (load "term/xterm") (xterm-register-default-colors) (tty-set-up-initial-frame-faces)) % Because that seems to have worked pretty well for me in Emacs 22/23 so far.