X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 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: References: Date: Tue, 25 Aug 2009 14:03:56 +0100 Message-ID: <416096c60908250603gea73024uf31dec139b2e3776@mail.gmail.com> Subject: Re: 256 color terminal in basic (non-"X Windows") Cygwin From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 2009/8/25 Gwen Morse: > I use a game client called Tinyfugue that can make use of ANSI 256 color codes. > > I've been running in mental circles trying to find (or patch and > compile) a terminal that will support 256 under regular cygwin. I > can't use XWindows because I often run my client off a USB stick and > I'm limited to what I can carry on it (basically the bare minimum of > dlls hand-copied to get the app running). > > I started out trying to use Putty for Cygwin. After reading the > minimal documentation I ended up stalled because I couldn't find > directions on how to use it to call another program via the command > line. Maybe I just missed them. > > Then, I tried using rxvt. This runs nicely off my usb stick, however, > it doesn't come with 256 color support compiled in. I downloaded the > source files through the Cygwin setup program, applied the 256 color > patch (I think) and rebuilt it. I tried using both "-tn > xterm-256color" and "-tn rxvt-256color" options. Neither gives me 256 > colors when I use the built-in testcolor call. In fact, I don't even > get 16 colors. I get the 8 basic colors but the "bright" options are > disabled. But, it is very nice to have a working terminal and I'll > stick with it for now. > > I tried looking into xterm, but, it supposedly needs XWindows, so, I'm > not even bothering to test it. > > What I need: a terminal program that can be built to run under cygwin > that supports 265 colors and where that feature actually _works_. If > it has any config files it needs, there needs to be a command-line (or > batch file parameter setting) that will let me tell it where to find > the file on my usb stick. It can't need Xwindows to run. If it needs > to be built from source I can do it myself. > > If rxvt "should" work properly once the patch is applied, I would > appreciate help to figure out where that patching went wrong. > > Really, any help on this would be appreciated. rxvt does support 256 colours, although you probably need to set the TERM variable to rxvt-256color to let your app know about it. This should do the job: $ rxvt -tn rxvt-256color -e game An alternative is mintty. Invoke it like this to set the TERM variable appropriately: $ mintty env TERM=xterm-256color game 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