Skip to main content
This tutorial will guide you through building a complete terminal user interface application with OpenTUI, from setup to deployment.

What We’ll Build

We’ll create a task manager application featuring:
  • A list of tasks with selection
  • Input field for adding new tasks
  • Status bar showing key bindings
  • Responsive layout that adapts to terminal size

Prerequisites

Make sure you have Bun installed:

Running Your App

Run your task manager:

Next Steps

Styling and Colors

Learn about RGBA colors and text styling

Keyboard and Mouse

Handle user input with key events and mouse interactions

Animations

Add smooth animations with the Timeline system

Console Overlay

Debug your app with the built-in console

Common Patterns

Saving Data

Persist tasks to a JSON file:

Handling Resize

Adapt your layout when the terminal is resized:

Adding Colors

Use different colors for task states: