Thread View: aus.computers.java
5 messages
5 total messages
Started by Adrian Duffell
Tue, 02 May 2000 00:00
color
Author: Adrian Duffell
Date: Tue, 02 May 2000 00:00
Date: Tue, 02 May 2000 00:00
12 lines
974 bytes
974 bytes
hi, wondering if you could help me change the text color in normal
console/dos type applications.
for example if i did this for the heading of my program
System.out.println("Welcome to my program");
how could i get it to print in say green?
and how can i clear the screen?
thanks in advance, adrian
ady@flashmail.com
Re: color
Author: Mad Dog
Date: Tue, 02 May 2000 00:00
Date: Tue, 02 May 2000 00:00
37 lines
1740 bytes
1740 bytes
Adrian Duffell wrote:
> hi, wondering if you could help me change the text color in normal
> console/dos type applications.
>
> for example if i did this for the heading of my program
>
> System.out.println("Welcome to my program");
>
> how could i get it to print in say green?
> and how can i clear the screen?
>
> thanks in advance, adrian
> ady@flashmail.com
To the best of my knowledge, java is very limited in what can be done at
command prompt.so in short, i believe it's impossible to do so. please
prove me wrong, and email me if i am. 8-)
here is the JAVA API
http://java.sun.com/products/jdk/1.2/docs/api/index.html
--
|\
____|@\
____/0 \
/ \
<----- \
\______ \
\=#=#=#=#=\_____________________________
| |\
| Final year Bach Applied Science (CS)|\\
| RMIT University Bundoora | \\
\ mail to: maddog100@rocketmail.com | \\
\_____________________________________| \)
Re: color
Author: Adrian Duffell
Date: Tue, 02 May 2000 00:00
Date: Tue, 02 May 2000 00:00
8 lines
979 bytes
979 bytes
well your email account thinks im spamming you so i cant email you maddog, but anyway i've found some screen shots of colour being used http://www.successinformation.com/getuh-oh.htm its for a text adventure game cheerio, adrian
Re: color
Author: Mad Dog
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
33 lines
1803 bytes
1803 bytes
Hmm, cool, but i don't think that games in java.
besides i just had a very good look at the API for you.
out as in Systam.out, is static of type PrintStream. now have a look through
PrintStream,
and you will see that there are plenty of print() methods, but none of which
that could do
what OhOh! does. i would think that program is done in C or something similar.
> well your email account thinks im spamming you so i cant email you maddog,
> but anyway i've found some screen shots of colour being used
>
> http://www.successinformation.com/getuh-oh.htm
>
> its for a text adventure game
>
> cheerio, adrian
--
|\
____|@\
____/0 \
/ \
<----- \
\______ \
\=#=#=#=#=\_____________________________
| |\
| Final year Bach Applied Science (CS)|\\
| RMIT University Bundoora | \\
\ mail to: maddog100@rocketmail.com | \\
\_____________________________________| \)
Re: color
Author: Tom Davies
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
8 lines
947 bytes
947 bytes
Adrian Duffell wrote: > > hi, wondering if you could help me change the text color in normal > console/dos type applications. Have you tried ANSI escape sequences? Tom
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads