Basically, changing to a lower resolution won't cause your console to extend past the screen anymore.
And this works by inserting the same color code on each wrapped line.