Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
gtcaca
Safe, idiomatic Rust bindings for GTCaca, a libcaca-based terminal UI toolkit written in C.
This is the high-level crate. It wraps the raw FFI in gtcaca-sys with widget
handles, builder-style constructors, and closure-based key callbacks. The whole
toolkit is single-threaded (one global context, one blocking event loop), so
the context and every widget are !Send/!Sync.
Requirements
libcaca development files, found at build time via pkg-config:
| Platform | Install |
|---|---|
| Debian/Ubuntu | apt install libcaca-dev pkg-config |
| Fedora/RHEL | dnf install libcaca-devel pkgconf-pkg-config |
| macOS | brew install libcaca pkg-config |
Example
use ;
Run the bundled demo in a real terminal:
Coverage
The safe API currently wraps the core loop and the common widgets
(application, window, label, button, entry, checkbox), and is growing. The
entire C API — all ~490 functions — is available today, unsafe, via the
re-exported gtcaca_sys FFI:
use ffi;
unsafe
License
Public Domain (Unlicense), same as GTCaca.