From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12301 invoked by alias); 8 Jun 2012 19:14:39 -0000 Received: (qmail 12293 invoked by uid 22791); 8 Jun 2012 19:14:37 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f45.google.com (HELO mail-wg0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Jun 2012 19:14:24 +0000 Received: by wgbdt14 with SMTP id dt14so1011095wgb.2 for ; Fri, 08 Jun 2012 12:14:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.220.81 with SMTP id n59mr1942080wep.220.1339182863050; Fri, 08 Jun 2012 12:14:23 -0700 (PDT) Received: by 10.216.170.149 with HTTP; Fri, 8 Jun 2012 12:14:22 -0700 (PDT) In-Reply-To: <877464.991851838-sendEmail@nebbiolo> References: <877464.991851838-sendEmail@nebbiolo> Date: Fri, 08 Jun 2012 19:14:00 -0000 Message-ID: Subject: Re: Small request for the new cygwin terminal From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00143.txt.bz2 On 8 June 2012 13:55, Helmut Karlowski wrote: > > Andy Koppe wrote: >> > I've added >> > >> > csin=\233, >> > >> > but I'm not sure if it's really necessary, and if it's wrong when I switch >> > the Character Set. tgetstr() returns the value defined in xterm-terminfo, >> > which may be wrong for another character set. When csin is missing in xterm, >> > tgetstr() returns 0. >> >> Looking at the standard, 'csin' isn't meant for a keycode, but for a >> command sent to the terminal, namely for the Init sequence for >> multiple codesets. I'm afraid I don't know what that means though, > > That was the closest I've found in the terminfo-manpage. What is the > terminfo-code for CSI (if any)? I don't know of one, and I'm not sure it's necessary, since CSI is a well-defined control character. > How does vi know about CSI and its > sequence as mentioned in your previous post? It's hardcoded to U+009B (decimal 155) in vim: http://vimdoc.sourceforge.net/htmldoc/intro.html#%3CCSI%3E And since it works in both UTF-8 and ISO-8859-x, it would appear that vim does the charset decoding before matching mappings, which is great. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple