tvision-rs
Turbo Vision in idiomatic Rust.
A faithful Rust port of magiblot/tvision, the modern C++ version of Borland's Turbo Vision, with overlapping windows, pull-down menus, dialogs, a status line and the DOS-era widget set, running in a terminal.

What is it?
An app built with tvision-rs looks and behaves like a DOS-era Turbo Vision program: overlapping windows, a menu bar at the top and a status line at the bottom. A Turbo Vision veteran recognises the framework, and the code is native Rust without inheritance, raw pointers or a preprocessor.
- The class hierarchy became a
Viewtrait plusViewStatecomposition. TView*pointers becameViewIdhandles.- The
cmXxx/sfXxxconstant families became namespaced consts and named boolean fields.
The single event loop, the modal dialogs, the whole-tree draw model and the widget set behave as in Turbo Vision. The guide lists each translation choice as a numbered deviation.
Try it
Use it
The crate is conventionally imported under the short alias tv (the T prefix
becomes the tv:: namespace: TButton → tv::Button, TDialog → tv::Dialog):
[]
= { = "tvision-rs", = "0.18.0" }
use ;
let mut dialog = new;
dialog.insert_child;
See examples/hello.rs for a complete, runnable program, and
the Getting Started guide for a
walk-through.
Documentation
- Developer Guide: getting started, building apps, how it works, and the widget gallery with screenshots.
- API reference: the rustdoc (also bundled into the
guide site at
/api/under each version). docs/folder: the guide's Markdown sources, the C++→Rust porting reference, and the cross-cutting design notes, as raw.mdfor reading on GitHub or feeding to tools and LLMs.
The guide and the API reference are served as one site. Code snippets in the guide are pulled from compiled examples that CI builds.
What's inside
Windows · dialogs · the desktop · pull-down menus · a status line · buttons,
check boxes, radio buttons, input lines (with picture-mask & regex validators),
a masked password input, list boxes (with incremental find/filter), a sortable
multi-column table, scrollers and scroll bars, a full text editor, a terminal
output view, an outline viewer, a truecolor
color picker, a splitter, file/directory dialogs, history lists, and a
themeable palette. Rendering is a vendored ratatui cell-buffer with whole-tree
diffing, behind a Backend trait (crossterm by default; a headless backend
drives the snapshot tests).
How it was built and where it's going
I ported tvision-rs from C++ using Claude Code, working class-by-class through magiblot/tvision in dependency order, with every widget pinned by a snapshot test against the original's behaviour.
On top of the port I am adding modern, native-Rust widgets and options to the classic set, such as a sortable table, a multi-pane splitter and a truecolor color picker. The guide's Extensions beyond Turbo Vision page lists them all; more are planned.
Heritage & license
tvision-rs is licensed under the MIT License. It carries forward the upstream
terms of the projects it ports and vendors, Turbo Vision (public domain,
Borland), magiblot/tvision (MIT) and ratatui (MIT), recorded in
NOTICE.
The demo animation is recorded with
cargo xtask demo, which drives thetvdemoexample in tmux and rasterizes each frame to an animated WebP.