Function ScrollbackBuffer.color
Writing into the scrollback buffer can be done with the same normal functions.
void color(
int foreground,
int background
);
Note that you will have to call [redraw] yourself to make this actually appear on screen.