Skip to content
rafageist edited this page Dec 4, 2026 · 7 revisions

TurboFrame

Desktop applications for the terminal, the Turbo Vision way, in Python.

TurboFrame is a Python framework for desktop-style terminal applications. Your application gets overlapping, numbered windows, drop-down menus, dialogs with shadows, a status line that always shows the next key, themes from Turbo Pascal's blue to green phosphor, and a progress box for long jobs. It is built on Textual and textual-vision, and it runs anywhere there is a terminal: on your machine, over SSH, inside tmux, and, since v0.3.0, in a web browser.

A TurboFrame desktop: four windows, menus and a status line

What you can build with it

  • A desktop in a few lines. Subclass DesktopApp, describe your menus and status line, and you have themes, shadows, a menu bar (F10 or Alt+letter), numbered windows (Alt+1..9, F6) and a clean exit. See Your First Application and The Desktop.
  • Windows and lists. Framed windows with Turbo Vision's scroll bars, lists and trees you filter by typing, and a locations window that jumps to a place. See Windows and Lists.
  • Dialogs. Message boxes, File Open with folders and wildcards, Find and Replace, Go to line, input lines with histories, and Options > Colors. See Dialogs and Histories.
  • Themes. Nine palettes: Turbo Pascal, Turbo C, Free Pascal, a modern dark theme and five phosphor screens. They share colour roles between your CSS and your code, and the colour depth runs from 16 colours to true colour. See Themes and Colors.
  • Tasks. A progress box with Esc to stop, a command runner that streams output and never waits on a prompt, a git service and a diff viewer. See Progress, Processes and Git and Diffs.
  • An editor and its tools. A code editor with syntax colours, completion, signatures and a language server's diagnostics; the project's explorer, which follows changes made on disk; Find and Replace, Find in files, Go to file and a command palette; the Git windows; log, Output and debugger windows. Mix them into your application as you need them. See The Editor, The Explorer, Git and Diffs and Application Mixins.
  • Settings and languages. One JSON store for the colours, histories, recent files and language, and your own texts translated with TurboFrame's tools. See Settings and Recent Files and Translating Your Application.
  • The same application in a browser. app --web 127.0.0.1:9090 --res 120x60 serves it to a browser tab, unchanged, on this machine only (new in v0.3.0). See Web Mode.
  • Tests that see what users see. Pilot helpers, catalogue checks, and a pytest plugin that drives your application in a real terminal. See Testing.
Windows, F6, Tile and a filtered list Options > Colors previews every theme
Numbered windows, F6, Tile, and a list you filter by typing Options > Colors: every theme, previewed as you reach it
Find with its history, File Open A job under the progress box
Find with its history, then File Open A job under the progress box, then a command's output
The workbench example A language server in the editor
The workbench: explorer, editors, Go to file, Find in files, Run A language server: completion, signatures, definitions, references

Start here

  1. Installation: Python 3.11 or later, from GitHub.
  2. Your First Application: a desktop in a few lines, then the tutorial grows it step by step: windows and menus, dialogs, themes, tasks and a workbench, a whole editor.
  3. The examples, one component each: a language server, the Git windows, watching folders and a post-mortem debugger.
  4. The guides, one per component (see the sidebar), and the API Reference for every public name.
  5. Web Mode to run your application in a browser.
  6. Testing, Packaging, Platforms and Troubleshooting when you need them.

A first look

from textual_vision.constants import Command
from textual_vision.menus import Menu, MenuItem, SubMenu
from textual_vision.status_line import StatusDef, StatusItem

from turboframe.ui.app import DesktopApp


class Hello(DesktopApp):
    def init_menu_bar(self):
        return Menu([SubMenu("~F~ile", MenuItem("E~x~it", Command.QUIT, "Alt+X"))])

    def init_status_line(self):
        return [StatusDef(0, 0xFFFF, [StatusItem("~Alt+X~ Exit", "alt+x", Command.QUIT)])]


Hello().run()

The application above

Where it comes from

TurboFrame gathers what two terminal applications built and proved in daily use: divide, an IDE for code generators, and turbodoo, a workbench for Odoo developers. You do not need either to use it. TurboFrame never depends on an application, and every component here runs and is tested on its own.

Status: alpha, v0.3.0. Before 1.0, a minor release may change the API, and its notes say how to migrate; pin a release (see Installation). What exists and what is planned: Roadmap.

TurboFrame is part of Divengine and is free software under the GPL-3.0-or-later. Source code: divengine/turboframe.

Clone this wiki locally