[DOS] How to set different text_colors?

new topic     » topic index » view thread      » older message » newer message

I'd be grateful for advice on coding to do achieve the following...
1   display a prompt message in, say, yellow (eg: "Enter something here:
")
2   echo user's response on screen in, say, green (eg "This is user's
input")

I've tried this, but can't get the green colour:
     ......
text_color( YELLOW )
puts( 1, "Enter something here: " )
text_color( GREEN )
user_input = gets( 0 )
     ......

Thank you

Alex Caracatsanis

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu