gavinlaking / vedeu

A framework written in Ruby for building GUI/TUI terminal/console applications.
Other
577 stars 35 forks source link

Alignment rendering #350

Open gavinlaking opened 8 years ago

gavinlaking commented 8 years ago

To compute where streams should be rendered, some work is performed by DSL::Align and DSL::Text. This however is at the wrong 'level'- it should be done in the Output::Viewport as it is only at that point we know if a stream is visible and where it should be rendered. Pre-computing alignment via padding and width (the current implementation) works some of the time but is not optimal.