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: <3ttq9517vregfno88j680fvvg8jd8725kn@4ax.com> References: <416096c60908312242g39e38fe5s5dbe299e84f6afd8 AT mail DOT gmail DOT com> <416096c60909010945q1673b591w316629d54d606310 AT mail DOT gmail DOT com> <17kq9510j9kst8dcpc516i8ce10n64nlta AT 4ax DOT com> <416096c60909011214j22d74367t6cc6238b4808655a AT mail DOT gmail DOT com> <3ttq9517vregfno88j680fvvg8jd8725kn AT 4ax DOT com> Date: Tue, 1 Sep 2009 23:57:59 +0100 Message-ID: <416096c60909011557u54eed209j960304414091099c@mail.gmail.com> Subject: Re: [ANNOUNCEMENT] Updated: screen, now with 256-color support! From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 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 > 'term screen-256color' sets TERM=screen-256color in the > environment of programs running inside screen, hence any program or > script that recognises "screen" but not "screen-256color" will no > longer work as expected. Btw, a different approach to enabling 256 colour support by default, which doesn't suffer from the problem above and which wouldn't require any faffing about with the TERM variable, would be to bump the 'colors' capability in the "xterm", "rxvt" and "screen" terminfo entries from 8 to 256. Unfortunately that's not without compatibility issues either though, which affect remote connections. When connecting from Cygwin to a host where those terminfo entries still say 8 colours, 256 colour support would be lost again. Not really a problem though, more just a limitation. The other way round is slightly more problematic. When connecting from another host to Cygwin, the other system's xterm, rxvt or screen might not actually support 256-colour sequences. Yet the application running on Cygwin would think that it did based on the local terminfo entry. This would likely result in no colours at all. Then again, with the 256 colour codes having been around for quite a long time, and Cygwin not exactly being a popular server platform, this scenario seems rather unlikely. (The underlying issue here is that the whole $TERM/termcap/terminfo design is fundamentally broken. The sensible thing to do would be for applications to directly ask the terminal they're actually connected to about its capabilities, rather than consult a humungous local database of mostly long-forgotten terminal types that's pretty much guaranteed to be out-of-date.) 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