Skip to content

not a bug or feature: how does rewrap work?

By lahwr... on April 05, 2015 22:10 (imported from Google Code)


I'm not sure where to put this - I'm trying to convince libvterm to implement line-wrap like iterm2's, but the problem is, we don't know how iterm2's wrap actually works, or what problems were encountered in its implementation.

Does iterm2 have:

- an array-of-line-arrays data representation that wraps on display,
- or a 2d-array-of-the-terminal representation that wraps on print and rewraps on resize,
- or a continuous stream of text that is wrapped on display?

How do you reconcile the complexities of fullscreen applications wanting absolute cursor positioning with word wrap?