Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.
  • ColorPicker and Program::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.
  • MaskedInput and RevealEye: 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.
  • TabBar and PageStack: 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.

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_primary and set_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.
  • HeadlessBackend and screen::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.
  • CrosstermBackend wraps every frame in synchronized output (DEC mode 2026), so terminals that support it show each frame whole.