Conform(slice []rune, width int, height int, wrap bool) should produce a [][]rune of width width and height height with control characters processed as well as the final output conformed to the width and height while abiding by wrap (whether to attempt to wrap words or not).
Problems:
See #1 - graphemes may tamper with the expected []rune width which can introduce interesting problems if you are expecting a 1:1 rune:cell relationship in render loops
Conform(slice []rune, width int, height int, wrap bool)
should produce a[][]rune
of width width and height height with control characters processed as well as the final output conformed to the width and height while abiding by wrap (whether to attempt to wrap words or not).Problems:
See #1 - graphemes may tamper with the expected
[]rune
width which can introduce interesting problems if you are expecting a 1:1 rune:cell relationship in render loops