Florian Dehau
fdbea9e2ee
fix(widgets/canvas): avoid panic on zero-width bounds
2020-07-05 14:02:11 +02:00
Priime
6204eddade
fix(readme): typo in demo section
...
There was a very small typo in the README on line 40, which cited the
`examples` folder as `exmples`. This resolves that issue.
2020-07-05 11:08:19 +02:00
Aram Drevekenin
e789c671b0
Update README.md
2020-06-28 15:23:22 +02:00
Alexander Batischev
8c2ee0ed85
feat(terminal): Add after-draw() cursor control to Frame ( #91 ) ( #309 )
2020-06-15 22:57:23 +02:00
Cokemonkey11
2b48409cfd
fix(examples): remove typo in demo text
2020-06-15 22:46:45 +02:00
Florian Dehau
7251186762
feat(style): add StyleDiff
2020-06-08 23:55:23 +02:00
Florian Dehau
82fda4ac0e
doc(style): improve documentation of Style
2020-06-08 23:55:23 +02:00
Kenta Iwasaki
1d12ddbdfc
layout: add vertical split constraint test on height
2020-06-08 23:05:08 +02:00
Kenta Iwasaki
f474c76e19
layout: force constraint that width and height are non-negative
2020-06-08 23:05:08 +02:00
Florian Dehau
ac99104114
feat(style): add support to serialize and deserialize Style using serde
...
* Add serde as an optional dependency.
* Add feature-gated derives to Color, Modifier and Style.
2020-05-28 01:08:40 +02:00
Paul Horn
0bb9b388f7
Borrow layout for splitting instead of moving it
...
This allows for layouts to be saved and reused and does not require an additional clone
2020-05-28 00:06:47 +02:00
Florian Dehau
b59e4bb808
feat(examples): enable mouse capture to make crossterm demo on par with termion
2020-05-27 23:56:46 +02:00
Florian Dehau
4fe647df0a
refactor(tests): rename integration tests to be able to call group of tests
2020-05-21 21:59:39 +02:00
Florian Dehau
a00350ab54
refactor(tests): rename test files and use the new TestBackend::assert_buffer
method
2020-05-21 21:59:39 +02:00
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.
2020-05-21 21:59:39 +02:00
Florian Dehau
18714caa60
Release v0.9.5
2020-05-21 20:59:34 +02:00
Stephan Dilly
7110fe0159
fix panic on narrow buffers ( fixes #293 )
2020-05-21 19:14:12 +02:00
Florian Dehau
5a590bca74
chore: enable clippy on all targets and all features
...
- Remove deny warnings in lib.rs. This allows easier iteration when developing
new features. The warnings will make the CI fails anyway on the clippy CI
stage.
- Run clippy on all targets (including tests and examples) and all features.
- Fail CI on clippy warnings.
2020-05-17 01:07:49 +02:00
Florian Dehau
963f11a6b1
Release v0.9.4
2020-05-12 21:25:28 +02:00
Florian Dehau
a7761fe55d
fix(buffer): ignore zero-width graphemes
2020-05-12 21:16:16 +02:00
Florian Dehau
10cf9305f1
Release v0.9.3
2020-05-11 00:02:12 +02:00
Clement Tsang
b72ced4511
fix(widgets/chart): remove overflow when dataset if empty ( #274 )
...
* docs: Fix missing code block fence
* use slice::windows to deal with underflow issue
* add test for empty dataset and lines
2020-05-10 23:48:12 +02:00
Florian Dehau
eb47c778db
Release v0.9.2
2020-05-10 15:59:40 +02:00
Darrien Glasser
359b7feb8c
fix(widgets/canvas): Add bounds check when drawing line high/low ( #283 )
...
* Add bounds check when drawing line high/low
* Add test to ensure codepath doesn't break
2020-05-10 14:40:04 +02:00
chrunchyjesus
6ffdede95a
chore: add documentation field in Cargo.toml ( #277 )
2020-05-10 12:27:52 +02:00
24seconds
4db0250b95
Add rust-sadari-cli in Apps using tui
section ( #278 )
2020-05-10 12:25:23 +02:00
SoptikHa2
69780bbbec
Add desed to list of apps using tui?
...
Desed is new application that is using tui-rs. It's debugger for sed with all the things like stepping, setting breakpoints and examining runtime state.
2020-05-09 12:23:09 +02:00
Florian Dehau
fda89d6859
Release v0.9.1
2020-04-16 18:43:13 +02:00
Florian Dehau
5d99b4af00
docs: improve widgets documentation
2020-04-16 18:43:13 +02:00
Florian Dehau
da4d4e1672
test: assert items are correctly truncated in the List
widget
2020-04-16 16:24:43 +02:00
Björn Steinbrink
8f9aa276e8
fix(widgets/list): fix line length calculation for selectable lists
...
The code that outputs the list elements uses the full inner width of its
block, without taking the width of the highlight symbol into
consideration. This allows the elements to overflow the box and draw
over the block's border. To fix that, we need to reduce the target width
for the list elements.
2020-04-16 15:31:37 +02:00
Florian Dehau
8debb0d338
Release v0.9.0
2020-04-14 19:48:18 +02:00
Florian Dehau
bc2a512101
feat: add missing Clone
and Copy
on types
2020-04-14 19:25:49 +02:00
Florian Dehau
4f728d363f
fix(widgets/list): stop highlighting blank placeholders
2020-04-14 18:40:59 +02:00
Florian Dehau
e81af75427
fix(examples): improve input handling in crossterm demo
...
* avoid stacking events
* ensure tick events are sent at the given tick rate (and not everytime a key is pressed).
2020-04-14 18:00:52 +02:00
Florian Dehau
8387b32bb8
chore: update changelog
2020-04-14 02:17:22 +02:00
Florian Dehau
2fccee740b
chore: add command to README to run demos without all unicode symbols
2020-04-14 02:17:22 +02:00
Florian Dehau
c98002eb76
feat: add an option to run the examples without all unicode symbols
2020-04-14 02:17:22 +02:00
Florian Dehau
584e1b0500
refactor(widgets/canvas): allow canvas to render with a simple dot character instead of braille patterns
...
This change allows developers to gracefully degrade the output if the targeted
terminal does not support the full range of unicode symbols.
2020-04-14 02:17:22 +02:00
Florian Dehau
cee65ed283
feat: allow BarChart and Sparkline to use a more portable set of symbols
...
Add `BarChart::bar_set` and `Sparkline::bar_set` methods to customize
the set of symbols used to display the data. The new set should give
a better looking output on terminal that do not support a wide range
of unicode symbols.
2020-04-14 02:17:22 +02:00
Stephan Dilly
8104b17ee6
chore: bump crossterm to 0.17
...
this fixes #250 because crossterm `0.17.3` has a fix for the resize/size issue
Co-Authored-By: Florian Dehau <work@fdehau.com>
Co-authored-by: Florian Dehau <work@fdehau.com>
2020-04-12 19:48:43 +02:00
Stephan Dilly
7676d3c7df
add clear widget and popup example utilizing it
2020-04-12 15:16:24 +02:00
orhun
3e6211e0a3
doc: Add kmon to 'apps using tui' in README
2020-04-12 15:05:27 +02:00
Stephan Dilly
05c472b741
add program using tui-rs
2020-04-12 15:02:07 +02:00
Florian Dehau
867ba1fd8c
chore: update changelog
2020-03-21 22:38:05 +01:00
Stephan Dilly
fd48719040
fix some typos
2020-03-21 20:55:45 +01:00
Loïc Girault
d987225ac8
Add thick lines and line::Set struct
...
Add a new style of line and use a struct to avoid duplication of
matching
2020-03-21 13:35:37 +01:00
Florian Dehau
503bdeeadb
chore: bump itertools to 0.9
2020-03-13 02:22:48 +01:00
Florian Dehau
d3f1669234
chore(Makefile): add lint to stable and beta rules
2020-03-13 02:22:15 +01:00
Florian Dehau
3f62ce9c19
chore: remove unecessary dependencies
...
* Remove log, stderrlog, structopt
* Add argh
2020-03-13 02:07:13 +01:00