delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/30/14:53:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [67.9.128.143]
X-Originating-Email: [lingua2003 AT hotmail DOT com]
X-Sender: lingua2003 AT hotmail DOT com
From: "David" <lingua2003 AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
References: <4069CAB5 DOT 2000603 AT veritas DOT com>
Subject: how to change fonts/color etc. for XWin?
Date: Tue, 30 Mar 2004 13:53:05 -0600
MIME-Version: 1.0
Message-ID: <BAY14-DAV17J9amqkhq0001e7be@hotmail.com>
X-OriginalArrivalTime: 30 Mar 2004 19:53:06.0054 (UTC) FILETIME=[9E52BA60:01C41690]
X-IsSubscribed: yes

Newbie question again:

Where can I change the background/font color
for XWin? I changed fonts/color, and it seemd that
it affected Cygwin shell, but CygXwin shell kept
its own original preference; yellow letters on black background.

How/where can I change it? I'd like to see white letters on
black background.

Thank you.

David

----- Original Message -----
From: "Mike Spertus" <mike DOT spertus AT veritas DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Tuesday, March 30, 2004 1:29 PM
Subject: Re: Cygwin perl not understanding textmode


> Igor Pechtchanski wrote:
>
> > On Tue, 30 Mar 2004, Mike Spertus wrote:
> >
> >> I have installed Cygwin with DOS linebreaks (i.e., disks mounted in
> >> textmode). However, Cygwin perl doesn't seem to understand this as
shown
> >> below. How do I tell Cygwin perl to respect textmode?:
> >>
> >> MPS AT MPS-2000 ~
> >> $ od -t x1 foo.txt
> >> 0000000 66 6f 6f 62 61 72 0d 0a 66 6f 6f 62 61 7a 0d 0a
> >> 0000020 66 6f 6f 62 61 74 0d 0a 0d 0a
> >> 0000032
> >>
> >> MPS AT MPS-2000 ~
> >> $ cat ~/foo.txt | perl -e 'while (<>) {print;}' >bar.txt
> >>
> >> MPS AT MPS-2000 ~
> >> $ od -t x1 bar.txt
> >> 0000000 66 6f 6f 62 61 72 0d 0d 0a 66 6f 6f 62 61 7a 0d
> >> 0000020 0d 0a 66 6f 6f 62 61 74 0d 0d 0a 0d 0d 0a
> >> 0000036
> >>
> >> MPS AT MPS-2000 ~
> >> $ mount
> >> C:\cygwin\bin on /usr/bin type system (textmode)
> >> C:\cygwin\lib on /usr/lib type system (textmode)
> >> C:\cygwin on / type system (textmode)
> >> c: on /cygdrive/c type user (textmode,noumount)
> >> g: on /cygdrive/g type user (textmode,noumount)
> >> r: on /cygdrive/r type user (textmode,noumount)
> >>
> >> Is this a bug? Any suggestions?
> >>
> >> Thanks,
> >> Mike
> >
> > When you use pipes, you lose the mount mode information.  Try running
> >
> > $ perl -e 'while (<>) {print;}' <~/foo.txt >bar.txt
> >
> > instead.  For controlling the mode of pipes, read about the
"(no)binmode"
> > option at <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>.
> > Igor
>
> I tried running your command, and exactly the same problem occurred :(
> In fact, my original perl script that I simplified in the post actually
> got the filename from the command line.
>
> Mike
>
> --
> 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/
>
>

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019