tttocea608: implement word wrapping in roll-up modes.
In roll-up modes, we open new lines when the last column is reached. This commit implements lookahead on a word basis, in order to avoid splitting words unless absolutely necessary (when a word won't fit on a full row)