Minimal, cross-platform Rust library for building text user interfaces

titik

Titik is a crossplatform TUI widget library with the goal of being able to interact intuitively on these widgets.

Screenshot

It uses crossterm as the underlying backend.

To run the demo use the following command:

cargo run --example demo 2>/dev/null

Note: 2>/dev/null is sending the debugging log from eprintln into the /dev/null device

Without doing so, will result a flicker in your screen caused by debugging info and tui mixed in one terminal output.

Alternatively, you can pipe the debugging log from eprintln into a file say /tmp/debug.log by doing so:

cargo run --example demo 2>/tmp/debug.log

You can then open a new terminal and tail the /tmp/debug.log file

tail -f /tmp/debug.log

.gitignore

/target
Cargo.lock

.travis.yml

language: rust
rust:
- stable

script:
- cargo build
- cargo test
- cargo build --example demo

Cargo.toml

[package]
name = "titik"
version = "0.3.1"
authors = ["Jovansonlee Cesar <ivanceras@gmail.com>"]
license = "MIT"
description = "A cross platform text ui widget"
repository = "https://github.com/ivanceras/titik"
documentation = "https://docs.rs/titik"
readme = "README.md"
keywords = ["text", "tui", "terminal", "widget"]
edition = "2018"

[dependencies]
crossterm = {version = "0.18.0", optional = true }
crossterm_new = {version = "0.19.0", optional = true, package = "crossterm" }
expanse = "0.3.3"
image = "0.23.0"
unicode-width = "0.1.7"
mt-dom = { version = "0.14"}
itertools = "0.9.0"
lazy_static = "1.4.0"
ito-canvas = { version= "0.1"}
#ito-canvas = { version= "0.1", path = "../ito-canvas"}


[features]
default = ["crossterm"]

Download details:

Author: ivanceras
Source: https://github.com/ivanceras/titik

#rust 

Minimal, cross-platform Rust library for building text user interfaces
1.00 GEEK