in reply to Colorize Curses::UI::TextViewer
First, I must say I have very little ( near -> 0 ) experience with Curses and/or POE.
It depends on what you really want to achieve. If you want to highlight portions of the text, than I can't help you with that.
But if all you want is to change the background and foreground of the text than is simple, change the line that defines the window to:
$_[HEAP]{tview} = $_[HEAP]->add( 'win1', 'Window' )->add( 'text', 'TextViewer', -wrapping => 1, # -width => -1, # -height => -1 -border => 1, -y => 1, -bfg => 'red', -bg => "white", -fg => "green", )
But, probably you already know that :)
Regards, Stefan
|
|---|