Michal Suchanek
1/15/2009 2:59:00 PM
2009/1/15 Phlip <phlip2005@gmail.com>:
> Ruby Rabbit wrote:
>
>> All my work uses ruby-ncurses as a base.
>
> Can you use it in an existing console, such as to simply color text, without
> pretending it's a window and taking over all of it?
>
I guess that's not what curses are meant for in general.
You can look up the terminal capabilities and use them to change
colors but curses functions all operate on windows. Curses is a TUI
library, not an output coloring library.
The situation is further complicated on Windows where the 'console' is
very fishy and normally you cannot change the colors with writing
terminal strings, only with Win32API calls.
Thanks
Michal