mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-12 20:23:35 +00:00
05e1212a50
Backends now have to send input to the given `chan::Sender<Event>`. They send these events from a separate thread, allowing selection between input and callbacks. This currently breaks the BearLibTerminal backend, which requires all calls to come from the UI thread. This might not be super-safe for the ncurses backend also. We hope that input and output are separate enough that they can run concurrently without problem.
74 lines
1.5 KiB
TOML
74 lines
1.5 KiB
TOML
[package]
|
|
authors = ["Alexandre Bury <alexandre.bury@gmail.com>"]
|
|
categories = ["command-line-interface", "gui"]
|
|
description = "A TUI (Text User Interface) library focused on ease-of-use."
|
|
documentation = "https://docs.rs/cursive"
|
|
exclude = ["doc/**", "assets/**", "examples/**"]
|
|
keywords = ["ncurses", "TUI", "UI"]
|
|
license = "MIT"
|
|
name = "cursive"
|
|
readme = "Readme.md"
|
|
repository = "https://github.com/gyscos/Cursive"
|
|
version = "0.9.0-alpha.0"
|
|
[badges.travis-ci]
|
|
repository = "gyscos/Cursive"
|
|
|
|
[dependencies]
|
|
enum-map = "0.2.24"
|
|
enumset = "0.3.3"
|
|
log = "0.4"
|
|
num = "0.1"
|
|
owning_ref = "0.3.3"
|
|
toml = "0.4"
|
|
unicode-segmentation = "1.0"
|
|
unicode-width = "0.1"
|
|
xi-unicode = "0.1.0"
|
|
libc = "0.2"
|
|
chan = "0.1"
|
|
|
|
[dependencies.maplit]
|
|
optional = true
|
|
version = "1.0.0"
|
|
|
|
[dependencies.bear-lib-terminal]
|
|
optional = true
|
|
version = "1.3.1"
|
|
|
|
[dependencies.chan-signal]
|
|
optional = true
|
|
version = "0.3"
|
|
|
|
[dependencies.ncurses]
|
|
features = ["wide"]
|
|
optional = true
|
|
version = "5.91.0"
|
|
|
|
[dependencies.pancurses]
|
|
features = ["wide"]
|
|
optional = true
|
|
version = "0.15"
|
|
|
|
[dependencies.pulldown-cmark]
|
|
default-features = false
|
|
optional = true
|
|
version = "0.1.0"
|
|
|
|
[dependencies.termion]
|
|
optional = true
|
|
version = "1.5.0"
|
|
|
|
[dev-dependencies]
|
|
rand = "0.4"
|
|
pretty-bytes = "0.2.2"
|
|
|
|
[features]
|
|
blt-backend = ["bear-lib-terminal"]
|
|
default = ["ncurses-backend"]
|
|
markdown = ["pulldown-cmark"]
|
|
ncurses-backend = ["ncurses", "maplit"]
|
|
pancurses-backend = ["pancurses", "maplit"]
|
|
termion-backend = ["termion", "chan-signal"]
|
|
|
|
[lib]
|
|
name = "cursive"
|