mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 04:33:13 +00:00
a6b25a4877
Without a terminal-resetting panic hook there are two main problems when an application panics: 1. The report of the panic is distorted because the terminal has not properly left the alternate screen and is still in raw mode. 2. The terminal needs to be manually reset with the `reset` command. To avoid this, the standard panic hook can be extended to first reset the terminal.
93 lines
1.7 KiB
TOML
93 lines
1.7 KiB
TOML
[package]
|
|
name = "tui"
|
|
version = "0.18.0"
|
|
authors = ["Florian Dehau <work@fdehau.com>"]
|
|
description = """
|
|
A library to build rich terminal user interfaces or dashboards
|
|
"""
|
|
documentation = "https://docs.rs/tui/0.18.0/tui/"
|
|
keywords = ["tui", "terminal", "dashboard"]
|
|
repository = "https://github.com/fdehau/tui-rs"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
exclude = ["assets/*", ".github", "Makefile.toml", "CONTRIBUTING.md", "*.log", "tags"]
|
|
autoexamples = true
|
|
edition = "2021"
|
|
|
|
[badges]
|
|
|
|
[features]
|
|
default = ["crossterm"]
|
|
|
|
[dependencies]
|
|
bitflags = "1.3"
|
|
cassowary = "0.3"
|
|
unicode-segmentation = "1.2"
|
|
unicode-width = "0.1"
|
|
termion = { version = "1.5", optional = true }
|
|
crossterm = { version = "0.23", optional = true }
|
|
serde = { version = "1", optional = true, features = ["derive"]}
|
|
|
|
[dev-dependencies]
|
|
rand = "0.8"
|
|
argh = "0.1"
|
|
|
|
[[example]]
|
|
name = "barchart"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "block"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "canvas"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "chart"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "custom_widget"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "gauge"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "layout"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "list"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "panic"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "paragraph"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "popup"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "sparkline"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "table"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "tabs"
|
|
required-features = ["crossterm"]
|
|
|
|
[[example]]
|
|
name = "user_input"
|
|
required-features = ["crossterm"]
|