delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/07/13:32:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4ACCD0B2.5090906@cwilson.fastmail.fm>
Date: Wed, 07 Oct 2009 13:32:34 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-62
References: <announce DOT 20091003135912 DOT GA32467 AT calimero DOT vinschen DOT de> <4ACB6309 DOT 9020609 AT cornell DOT edu> <416096c60910060902m719726b9of985c46e91a2b518 AT mail DOT gmail DOT com> <20091006160902 DOT GT12789 AT calimero DOT vinschen DOT de> <4ACC82F5 DOT 8080602 AT towo DOT net>
In-Reply-To: <4ACC82F5.8080602@towo.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Thomas Wolff wrote:
> It should be possible (and should be done then) to pre-configure at
> least the Cygwin desktop link to use Lucida Console.

It does not appear that the extended panels in the cmd.exe shortcut
properties are available programmatically [*]  The best I found was some
utility code that uses undocumented win32 apis to change console
properties like Font at runtime:
http://www.catch22.net/sites/default/source/files/setconsoleinfo.c
(On Vista, you can use SetConsoleScreenBufferEx -- which is supposedly
"documented" but I couldn't find any).

However, our w32 import libraries don't include these functions, so it
might have to use GetProcAddress to access them.

In any case, even if you got these solutions to work, the best they
could offer is that we could write a utility program, and set things up
in cygwin.bat so that the utility is called.

[*] Maybe. It's possible that there is some generic "Properties"
accessor for the ShellLink object, and you could manually peruse the
them on an existing, generic cmd.exe shortcut, and you might discover
some nifty item that we could modify. But I don't plan on doing that
reverse-engineering effort.

> (And maybe an option to mkshorcut for this purpose would be useful,
> too.) Don't know whether it's possible to select the font from within
> cygwin.bat, though.

See above.

FYI: I discovered that the Consolas font is available for download on
non-Vista:
http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en
or here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=428D5727-43AB-4F24-90B7-A94784AF71A4&displaylang=en

Then, by following the steps here:
http://support.microsoft.com/kb/247815

You can add it to the list of fonts that cmd.exe can use (Windows 7 and
Windows Server 2008 R2 already allow this by default). It shows up in
the Properties menu immediately, but it has no effect if you select it,
until you reboot.

It's quite similar to Lucida Console, but a little more appealing
character shape (yeah, I'm a font snob).  The zero has a slash through
it, which is nice, but unfortunately -- unlike Lucida Console -- the
lowercase l is more similar to the numeral one than it ought to be. It
looks like crap unless you have ClearType turned on, but pretty good if
you do. Overall, I think I like it better than Lucida Console -- except
that:

[1.7]$ LANG=C.CP437 ascii

shows the line-draw characters if you're using Lucida Console in a
cmd.exe window, but doesn't if you're using Consolas. Similarly:

[1.7]$ LANG=C.CP437 /usr/lib/ncurses/test/ncurses.exe

--
Chuck


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

- Raw text -


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