wrap(
text,mask,colour) ->row
Set a border on every cell of one row of text
Arms the border first, then rewrites each SGR in text to arm it again,
since a reset clears it and every tss:apply ends in one. A 51 in text
joins mask until a 54 or a reset clears it. So a nested table's top edge
and a div's top edge share the row. A 56 in text holds inside that span,
and colour comes back after a 57 or a reset. The row closes with off().
text is one row: clip it before the call, since std.txt.limit drops the
escapes after its clip point, the close among them.