viluon / Desktox

Desktox has moved to GitLab!
https://gitlab.com/viluon/Desktox
Mozilla Public License 2.0
1 stars 0 forks source link

Implement :shrink() #7

Open viluon opened 7 years ago

viluon commented 7 years ago

Implement a method for shrinking a buffer using the teletext characters of CC 1.76+.

viluon commented 7 years ago

Huh, that's quite inefficient though - isn't it? We wouldn't need a buffer with 3 pixel properties, we'd only utilise the background colour. Therefore pixels could only be numbers instead of arrays - we need a new buffer library for this, or somehow branch the existing buffer... I know @Exerro solved this by using a preprocessor (which is both ugly and against the Desktox development process philosophy). So it'd probably be best to just have another module, but that's twice the code to maintain :/

viluon commented 7 years ago

Shrinking should be a feature of another (external) library, and is outside the scope of desktox.buffer. Rendering a pixel-perfect buffer to a terminal buffer should "shrink" automagically, so the functionality will essentially be there, once pixel-perfect is implemented.

viluon commented 7 years ago

Actually, thanks to #16, we can resolve #10, for which we'll need :shrink().