Controlling gets(0) color
- Posted by Alan Tu <ATU5713 at COMPUSERVE.COM> Jun 29, 1998
- 440 views
This problem is most vexing. I use gets(0) to get input from the keyboard. I want that text to be displayed in a certain color. For example, I put the prompt in the standard dos white on black, then I use gets. As I type, gets() displays= the input. I've tried text_color(), I've tried shading prior to the gets(0) call. No matter what I do, gets overwrites what I've shaded; it insists on displaying white on black. No changing of foreground or background color. What can I do? This is one of the few times where I wish this library routine wasn't bui= lt into the interpreter. --Alan =