X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4A3153FA.8080606@aim.com> References: <4A3153FA DOT 8080606 AT aim DOT com> Date: Thu, 11 Jun 2009 21:01:28 +0100 Message-ID: <416096c60906111301y35d82e3aia8007a3238fb067a@mail.gmail.com> Subject: Re: Using emacs in a terminal window From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > Here are some differences between the terminfo capabilities > 'rxvt-cygwin-native' and 'Eterm-256color': > > 1. max_colors: > rxvt =C2=A0 =C2=A0- max_colors: 8 > Eterm - max_colors: 256 I'd say it's a bug that the rxvt max_colors entry is 8, since rxvt does support 256 colours in its default setting. (And I notice it's the same with xterm.) Don't know whether there are compatibility concerns that require that. However, the correct way to address this is to set TERM to rxvt-256color (or xterm-256color, as appropriate) rather than Eterm-256color. > We do not want to limit Emacs to 8 colors, and having > Eterm-256color set the value to 256 does not cause > any problem for rxvt. Presumably the emacs authors have learned from bitter experience that the various terminal capability mechanisms can't be relied upon and simply hardcoded the keycodes for the most popular terminals. Also, many terminal emulators (and their version) can be identified through the so-called "secondary device attribute" control sequence. > 4. key_a1, key_a3, key_c1, key_c3: > =C2=A0 These are the Home/PgUp/PgDn/End keys > > rxvt =C2=A0 =C2=A0 - \E0w, \E0y, \E0q, \E0s > Eterm =C2=A0- \E[7~, \E[5~, \E[8~, \E[6~ > > Does this difference in key definitions matter in > Cygwin's terminal-mode Emacs running in rxvt? > > No. It may not matter for emacs, but it probably would e.g. for ncurses programs which rely on terminfo information much more. Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/