Xavier said:
Hi,
Running java (1.4) under Windows (XP), how can I change the console text
color for a part of the output text, perhaps something like :
System.out.println("This is [?1] green [?2]");
Where [?1] and [?2] are some (ANSI ?) code to set and unset text color in
green.
Thanks
Xavier
There is no portable way to do that. How to do it will depend on the
type of screen being used, or the visual being used on that screen (it
might be running on a black-and-white screen). It will also depend on
what kind of 'terminal' is being used for stdout - Xterm, dtterm, qterm,
dos, etc.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94 (206)544-5225
#! rnews 1721
Xref: xyzzy sci.energy:132022 sci.energy.hydrogen:80848 sci.environment:397270 sci.physics:890044
Newsgroups: sci.energy,sci.environment,sci.energy.hydrogen,sci.physics,alt.politics
Path: xyzzy!nntp
From: "Fred McGalliard" <
[email protected]>
Subject: Re: California Rolls out $54M Hydrogen Highway Plan - Boondoggle
X-Nntp-Posting-Host: e056750.nw.nos.boeing.com
Message-ID: <
[email protected]>
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Priority: 3
X-Msmail-Priority: Normal
Lines: 14
Sender: (e-mail address removed) (Boeing NNTP News Access)
Organization: The Boeing Company
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
References: <W%
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]> <
[email protected]>
Date: Fri, 3 Jun 2005 14:29:51 GMT
....
Though superior in many ways, the "horseless carriage" and fuel was not
cheaper than horse, wagon and fuel. Economies of choice are not always
solely driven by price and access.
A major factor, as I recall reading (wasn't there myself), was pollution.
The thousands of folk employed cleaning up horse manure from every street
and alley, and the "smog" of dried horse dung, made the city both dirty and
unhealthy.