X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/950bed4bb96d2a580818bdaab64a164c7c9a1c1e..1913a2b35da45eeeb71ef851975be7d57c11de78:/lisp/term/xterm.el diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index ecfeaba51f..049d65c62f 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -1,6 +1,7 @@ ;;; xterm.el --- define function key sequences and standard colors for xterm -;; Copyright (C) 1995, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +;; Copyright (C) 1995, 2002, 2003, 2004, 2005, +;; 2006 Free Software Foundation, Inc. ;; Author: FSF ;; Keywords: terminals @@ -192,8 +193,8 @@ ;; rxvt terminals sometimes set the TERM variable to "xterm", but ;; rxvt's keybindings that are incompatible with xterm's. It is ;; better in that case to use rxvt's initializion function. - (if (and (terminal-getenv "COLORTERM") - (string-match "\\`rxvt" (terminal-getenv "COLORTERM"))) + (if (and (getenv "COLORTERM" (terminal-id)) + (string-match "\\`rxvt" (getenv "COLORTERM" (terminal-id)))) (progn (eval-and-compile (load "term/rxvt")) (terminal-init-rxvt))