Florian Dehau
ecb482f297
fix(backend): move the cursor when first diff is on second cell
...
Both termion and crossterm backends were not moving the cursor if the first diff to draw was on the
second cell. The condition triggering the cursor move has been updated to fix this. In addition, two
tests have been added to avoid future regressions.
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
3f62ce9c19
chore: remove unecessary dependencies
...
* Remove log, stderrlog, structopt
* Add argh
4 years ago
Florian Dehau
a3827aaeae
Remove try call in termion backend
5 years ago
David Flemström
a25bbea555
Add workarounds for weird termion escape code handling
5 years ago
David Flemström
b7664a4108
Support several modifiers and indexed colors at once
5 years ago
scauligi
7290086fe9
forgot to flush
5 years ago
scauligi
bca920bea0
get/set cursor position
5 years ago
Sven-Hendrik Haase
144bfb71cf
Upgrade to 2018 edition
5 years ago
Ash
a2776dfc86
Make sure we always emit a cursor goto for the first update.
...
Otherwise, if the first update is to (1, 0) then no goto occurs.
6 years ago
Karoline Pauls
5cee2afc6d
Limit Rect size to prevent u16 overflow
6 years ago
Florian Dehau
5d52fd2486
refactor: remove custom termion backends
6 years ago
Florian Dehau
40bad7a718
feat: add initial support for crossterm
6 years ago
Florian Dehau
d6016788ef
refactor: clippy + rustfmt
6 years ago
Florian Dehau
36a5eb2110
Format code
6 years ago
Xavier Bestel
f4052e0e71
fix colors use, add missing Blue
6 years ago
Florian Dehau
f816e6bbc4
[backends] Improve termion backend
...
* Add AlternateScreenBackend
* Add a way to create a TermionBackend with a custom config
* Improve return values of several methods
6 years ago
Florian Dehau
af16518650
[src] Run rustfmt
7 years ago
Florian Dehau
1f285fbac0
[src] Run cargo fmt
7 years ago
Florian Dehau
71545a0aa8
Run cargo fmt
7 years ago
Florian Dehau
a9aa23aead
Add mouse support in TermionBackend
...
* Old TermionBackend is replaced by RawBackend
* Add TermionBackend with mouse support called MouseBackend
7 years ago
Florian Dehau
b2bb24b9d2
Fix rustfmt and clippy errors
7 years ago
Florian Dehau
feefa5d54f
Convert backends to conditionnal features for compilation
8 years ago