Florian Dehau
7870793b4b
Release v0.16.0
2021-08-01 20:12:20 +02:00
Florian Dehau
a7c21a9729
fix(widgets): avoid offset panic in Table
and List
when input changes
2021-08-01 18:01:24 +02:00
Florian Dehau
914d54e672
chore: bump crossterm to 0.20
2021-08-01 17:14:11 +02:00
Florian Dehau
a68e38e59e
fix(table): use Layout
in table column widths computation
2021-08-01 16:46:54 +02:00
Florian Dehau
e870e5d8a5
feat(layout): add private option to control last chunk expansion
2021-08-01 16:46:54 +02:00
Deepu K Sasidharan
29387e785c
Add battleship.rs
2021-08-01 16:44:36 +02:00
Florian Dehau
8eb6336f5e
refactor(widgets): remove iter::repeat for blank symbols
2021-08-01 15:08:53 +02:00
Florian Dehau
34a2be6458
fix(widgets/chart): remove panics with long axis labels
2021-08-01 15:08:53 +02:00
Florian Dehau
fbd834469f
doc(widgets/clear): clarify usage of clear
2021-06-16 21:58:04 +02:00
Florian Dehau
8da5f740af
refactor(examples): show more use case in gauge example
2021-06-16 20:24:14 +02:00
Florian Dehau
38dcddb126
fix(widgets/gauge): apply label style and avoid overflow on large labels
2021-06-16 20:24:14 +02:00
Phillip Cloud
92948d2394
chore: add minesweep to list of apps using tui-rs
2021-06-16 17:25:11 +02:00
orhun
a3a0a80a02
docs: add gpg-tui to the "apps using tui" list
2021-06-16 17:19:34 +02:00
jmrgibson
a5f7019b2a
doc: fix minor grammatical errors ( #489 )
...
A missing "and" after "an" (which I do all the time) and some tense clarification.
2021-06-16 17:15:13 +02:00
Moritz
e05b80cec1
doc: fix typos in comments. ( #486 )
2021-06-16 17:14:16 +02:00
Florian Dehau
23d5fbde56
refactor(examples): remove exit key from Events handler
...
The thread spawned by `Events` to listen for keyboard inputs had knowlegde of
the exit key to exit on its own when it was pressed. It is however a source of
confusion (#491 ) because the exit behavior is wired in both the event handler
and the input handling performed by the app. In addition, this is not needed as
the thread will exit anyway when the main thread finishes as it is already the
case for the "tick" thread. Therefore, this commit removes both the option to
configure the exit key in the `Events` handler and the option to temporarily
ignore it.
2021-06-16 17:07:59 +02:00
Oleks (オレクス)
a346704cdc
feat(block): add option to center and right align the title ( #462 )
...
* Added ability to set title alignment, added tests, modified blocks example to show the feature
* Added test for inner with title in block
* Updated block example to show center alignment
* Formatting fixed
* Updated tests to use lamdas and be more concise. Updated title alignmnet code to be more straightforward and have correct behavior when placing title in the center without left border
2021-05-22 16:55:24 +02:00
Andrew Chin
24396d97ed
doc: Add doctests that shows how Text can be created from Cow<str>
2021-05-22 16:47:06 +02:00
Andrew Chin
703e41cd49
feat(Text): Add a From<Cow<str>> impl for Text
2021-05-22 16:47:06 +02:00
Florian Dehau
975c4165d0
chore: fix clippy warnings
2021-05-22 15:54:38 +02:00
Arijit Basu
dbf38d847a
Add xplr to the "apps using tui" list
...
`xplr` is a hackable TUI file explorer.
2021-05-22 15:08:06 +02:00
Florian Dehau
91a2519cc3
chore: update links to examples in README
...
Links now include the fully qualified domain as well as the version.
This will make them work in docs.rs and make sure readers are looking at code which is consistent with the latest version available.
2021-05-03 00:30:59 +02:00
Alexandru Scvortov
a1c3ba2088
fix: actually clear buffer in TestBackend::clear ( #461 )
2021-05-02 22:35:27 +02:00
Alexandru Scvortov
d47565be5c
fix: actually clear buffer in TestBackend::clear ( #461 )
2021-05-02 22:35:08 +02:00
Florian Dehau
1028d39db0
chore: improve contributing guidelines
...
* Improve issue templates and make them mandatory.
* Improve CONTRIBUTING.md.
* Add template for pull requests.
2021-05-02 21:42:31 +02:00
Deepu K Sasidharan
b250825c38
Add kdash to apps using this section ( #469 )
...
chore: add `kdash` to apps using `tui`
2021-05-02 20:13:56 +02:00
Florian Dehau
90a6a8f2d6
Release v0.15.0
2021-05-02 19:03:01 +02:00
Florian Dehau
414386e797
chore: update rand
to 0.8 ( #472 )
2021-05-02 18:51:59 +02:00
Joey Ezechiëls
3a843d5074
fix(test): remove compile warning in TestBackend::assert_buffer ( #466 )
2021-05-02 18:27:47 +02:00
Luc Perkins
4e76bfa2ca
chore: add Vector to list of apps using tui ( #452 )
...
Signed-off-by: Luc Perkins <luc@timber.io>
2021-02-21 14:58:57 +01:00
Simas Toleikis
8832281dcf
Update crossterm to 0.19.
2021-01-04 23:26:04 +01:00
Florian Dehau
853f3d9200
feat(terminal): add a read-only view of the terminal state after the draw call
2021-01-04 22:18:28 +01:00
Florian Dehau
67e996c5f4
feat(examples): add third tab to demo to show colors
2021-01-01 15:41:49 +01:00
Florian Dehau
f09863faa0
Release v0.14.0
2021-01-01 14:51:08 +01:00
Florian Dehau
eb1e3be722
fix(widgets/block): make Block::inner return more accurate results on small areas
2020-12-13 17:21:10 +01:00
Sagie Gur-Ari
4ec902b96f
chore: make run-examples available on all platforms ( #429 )
...
* Make examples available for all platforms
* limit windows to crossterm_demo only and make q exit demos work
2020-12-13 15:29:31 +01:00
Vadim Chekan
74243394d9
fix(widgets/table): draw table header and border even if rows are empty ( #426 )
2020-12-08 21:49:16 +01:00
Florian Dehau
e7f263efa7
chore(ci): fix cargo-make cache on windows runner
2020-12-07 23:58:27 +01:00
Florian Dehau
0991145c58
chore(ci): simplify ci workflow ( #428 )
...
* chore(ci): simplify ci workflow
* use more up to date action
* restrict actions allowed to run
* cache cargo-make
2020-12-06 18:31:54 +01:00
Florian Dehau
01d2a8588a
chore(ci): reduce the number of triggered jobs
2020-12-06 16:58:07 +01:00
Florian Dehau
45431a2649
chore: add first contributing guidelines
2020-12-06 16:58:07 +01:00
Florian Dehau
0b78fb9201
chore: use cargo-make
in the CI as well
2020-12-06 16:58:07 +01:00
Florian Dehau
9cdff275cb
chore: replace make
with cargo-make
...
`cargo-make` make it easier to provide developers of all platforms an unified build workflow.
2020-12-06 16:58:07 +01:00
Arne Beer
77c6e106e4
doc(examples): Add comments to "list" example and fix list direction ( #425 )
...
* Add docs to list example and fix list direction
* List example: review adjustments and typo fixes
2020-12-06 16:33:31 +01:00
Florian Dehau
efdd6bfb19
feat(tests): add tests covering new table features
2020-11-29 23:47:58 +01:00
Florian Dehau
117098d2d2
refactor(examples): add missing margin at the bottom of the header of table in the demo
2020-11-29 23:47:58 +01:00
Florian Dehau
f933d892aa
chore: update CHANGELOG
2020-11-29 23:47:58 +01:00
Florian Dehau
5ea54792c0
refactor(widgets/table): more flexible table
...
- control over the style of each cell and its content using the styling capabilities of Text.
- rows with multiple lines.
- fix panics on small areas.
- less generic type parameters.
2020-11-29 23:47:58 +01:00
Tom Forbes
23a9280db7
chore: add gping to the lists of apps using tui ( #422 )
...
* Add gping to the lists of apps using tui
2020-11-29 19:28:53 +01:00
Florian Dehau
79e27b1778
refactor(widgets/gauge): stop using unicode blocks by default
2020-11-29 19:27:34 +01:00