Commit Graph

9 Commits (master)

Author SHA1 Message Date
Alexandru Scvortov d47565be5c
fix: actually clear buffer in TestBackend::clear (#461) 3 years ago
Joey Ezechiëls 3a843d5074
fix(test): remove compile warning in TestBackend::assert_buffer (#466) 3 years ago
Florian Dehau 853f3d9200 feat(terminal): add a read-only view of the terminal state after the draw call 3 years ago
Brooks Rady ce32d5537d
chore: clippy fixes (#386) 4 years ago
Florian Dehau 0ffea495b1 refactor: implement cascading styles
- merge `Style` and `StyleDiff` together. `Style` now is used to activate or deactivate certain
style rules not to overidden all of them.
- update all impacted widgets, examples and tests.
4 years ago
Florian Dehau 96c6b4efcb refactor(tests): move test utilities to TestBackend
* Remove custom Debug implementation of Buffer
* Add `TestBackend::assert_buffer` to compare buffers in integration tests. When
the assertion fails, the output now show the list of differences in addition
of the views of the computed and expected buffers. This effectively replaces
the table of debug code for colors and modifiers as it is easier to read.
4 years ago
scauligi bca920bea0 get/set cursor position 5 years ago
Karoline Pauls 5cee2afc6d Limit Rect size to prevent u16 overflow 6 years ago
Florian Dehau 22e8fade7e feat: add experimental test backend 6 years ago