Extensions beyond Turbo Vision
This page lists the widgets, options and subsystems tvision-rs adds to what
magiblot/tvision offers. Convenience methods that wrap what a Turbo Vision
program does by hand, such as Program::open_file_dialog, are not listed.
Where the guide describes one of these features, a
tvision-rs extension callout at the start of the section points back here.
New widgets
These have no Turbo Vision counterpart.
Table: a sortable multi-column list with a click-to-sort header, columns the user can resize, move and hide, and in-place cell editing. See the gallery and Controls.Splitter: a resizable multi-pane layout with draggable dividers, a keyboard resize mode and divider lines that can join the window frame (junction). See Windows & the desktop and the gallery.ColorPickerandProgram::color_dialog: a truecolor picker with Presets, RGB, Hue/Sat and Xterm tabs, either embedded in a dialog or run as a ready-made modal that returns the chosen color. See the gallery.MaskedInputandRevealEye: a password field that shows bullets, with a one-cell eye that reveals the text while held or for a timed peek. See the gallery.TabBarandPageStack: a one-row tab selector and a container that shows one page at a time, coupled so the bar switches the page. The color picker is built from them.Program::theme_editor: a dialog that lists every theme role, edits its colors with the color picker and installs the result on OK. See Theming & colors.RegexValidator: an input-line validator driven by a regular expression, with the same type-as-you-go checking as the picture-mask validator. See Controls.
TColorDialog and its helper classes are not ported: they edited the
application's TPalette, each entry a foreground/background attribute built
from the BIOS colors, which tvision-rs replaces with a role-based theme.
ColorPicker takes their
place; see Dropped & changed.
New options on ported widgets
These extend a ported Turbo Vision class.
FindMode(TListViewer): incremental find on list boxes. Typing builds a query that highlights the matched text and can filter the list to the matching rows. See Controls and the gallery.InputLine::set_read_only(TInputLine): a field that refuses edits but still takes focus, scrolls and copies. See Controls.InputLine::set_value_position(TInputLine): shows the start of a value too long for the field instead of its end. See Controls.InputLine::set_select_all_on_focus(TInputLine): keeps the caret and selection when the field gains focus instead of selecting the whole text.InputLine::set_maskandset_reveal(TInputLine): draw every character as an echo character, for passwords.MaskedInputbuilds on them.FullscreenandWindow::set_fullscreen(TWindow): a frameless window that fills the desktop or the whole screen, with the menu bar collapsed to a[⋮]button. See Windows & the desktop.Dialog::button_rowandButtonLayout(TDialog): lay out a row of buttons with the classic metrics, with face widths that are fixed, uniform or sized to each label.Group::set_surface(TGroup): fills a group's background with a role that changes when the pane gains or loses focus.
New subsystems
Keymap: the keys of the editor and the input line are a configurable table of chords, with WordStar, CUA and Emacs presets. See Keyboard & key mapping and Text editing.Backend::get_primaryandset_primary: middle-click pastes the X11 or Wayland PRIMARY selection into an input line or the editor, and a mouse selection in an input line becomes the PRIMARY selection for other programs.HeadlessBackendandscreen::snapshot: an in-memory terminal with injected input and an inspectable screen, and a stable text format of that screen for snapshot tests, for testing an application without a terminal.CrosstermBackendwraps every frame in synchronized output (DEC mode 2026), so terminals that support it show each frame whole.