X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: Color Schemes Date: Thu, 31 Aug 2006 01:19:26 +0100 Message-ID: <04d201c6cc93$1e0ec0e0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 On 31 August 2006 00:40, mwoehlke wrote: > Dave Korn wrote: > >> Unfortunately I don't know anything about how to make cygwin aware of these >> colours. > > Aware? Cygwin is never aware of them; that's the point. All the terminal > knows is '1;32', '0;37', etc. It is the job of the terminal emulator to > decide how to present those. That's the whole point of my suggestion to > change them at that level, where the underlying programs *don't* know a > thing about it. That way they can't break it. :-) > > It sounds to me like what Richard is currently doing is changing the > color code used for the default background (which will cause problems), > rather than leaving it alone and changing the presentation of the > various color codes. Indeed, and referring back to his original mail, the problem is that every utility seems to require a different way of setting the colours he uses, whereas he wants some global setting /like/ the properties but in a cygwin-aware fashion. AFAIUI, the mapping of escape codes to which visual colours they mean is utterly fixed by ANSI, and it is, as you say, the termulator's job to display the correct visual colour. We could attempt in cygwin's console-handling code to look up the current console's current palette and attempt some kind of best-fit matching, at least in theory, but there's still the old SHTDI problem there.... cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/