Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Gaurav-Gosain/tuios/llms.txt
Use this file to discover all available pages before exploring further.
Launch TUIOS
Start TUIOS from your terminal:- A single terminal window (Window 1) running your default shell
- A dockbar at the bottom showing all windows
- A clock in the top-right corner
- Status indicators for workspace and mode
TUIOS starts in Window Management Mode by default. This mode lets you create, navigate, and organize windows. Press
i or Enter to switch to Terminal Mode where your input goes directly to the focused terminal.Understanding Modes
TUIOS has two primary modes:Window Management Mode
Navigate and manage windows, workspaces, and layouts. Most keybindings work without conflicts.Indicators: Border around focused window, mode shown in status bar
Terminal Mode
Input goes directly to the focused terminal. Use Ctrl+B prefix for TUIOS commands.Indicators: Cursor visible in terminal, prompt active
- Press
iorEnterto enter Terminal Mode (from Window Management Mode) - Press
Ctrl+Bthend, orEscto return to Window Management Mode
Essential Keybindings
Create Your First Window
Let’s create a second window to see TUIOS in action.In Window Management Mode:From any mode (using prefix):You should now see two windows. The dockbar at the bottom shows both “Window 1” and “Window 2”.
Switch Between Windows
Navigate between your windows:Keyboard navigation:Mouse navigation:The focused window will have a highlighted border.
Enter Terminal Mode
To actually use a terminal, enter Terminal Mode:Now type some commands:Notice: You can still use
Ctrl+B prefix commands:Try Window Layouts
Return to Window Management Mode (Or enable automatic tiling:With tiling enabled, create a few more windows (press
Ctrl+B then d) and try snapping windows:n repeatedly). Watch how TUIOS automatically arranges them in a balanced layout.Tiling mode keybindings:Use Workspaces
Organize windows across 9 independent workspaces:On macOS: Use Try this workflow:
Option+1 through Option+9Move windows between workspaces:- Press
Alt+1to ensure you’re on workspace 1 - Press
Alt+2to switch to workspace 2 (empty) - Press
nto create a window on workspace 2 - Press
Alt+1to go back to workspace 1 - Notice workspace 2’s windows are hidden until you switch back
Explore Copy Mode
Copy mode lets you navigate scrollback and copy text with vim keybindings:In copy mode:Example: Scroll back through your terminal history:
- Run some commands to generate output:
ls -la && pwd && date - Press
Ctrl+Bthen[to enter copy mode - Press
kseveral times to scroll up - Press
/and type a search term, then Enter - Press
vto start selecting, move cursor, pressyto copy - Press
Escto exit copy mode
TUIOS keeps 10,000 lines of scrollback per terminal by default. You can configure this with the
--scrollback-lines flag or in the config file.Common Workflows
Development Environment Setup
Create a typical development layout:Monitor Multiple Servers
Session Persistence (Daemon Mode)
Keep your TUIOS sessions running even after detaching:Universal Keybindings (Work from Any Mode)
These use theCtrl+B prefix and work whether you’re in Window Management or Terminal Mode:
Window Management Mode Quick Reference
When you’re in Window Management Mode (pressEsc or Ctrl+B d from Terminal Mode):
Window Operations
Navigation
Snapping
Tiling
Getting Help
TUIOS has built-in help:Configuration
Customize TUIOS with a TOML config file:- Customize all keybindings (100+ configurable)
- Change the leader key (default: Ctrl+B)
- Set default theme, border style, dockbar position
- Configure scrollback buffer size
- Customize window title position
Run with Options
TUIOS supports many command-line flags:Advanced Features
SSH Server Mode
Run TUIOS as an SSH server for remote access:Web Terminal Mode
Access TUIOS from a web browser (requirestuios-web binary):
Tape Scripting
Automate workflows with tape scripts:Troubleshooting
How do I exit TUIOS?
How do I exit TUIOS?
From Window Management Mode, press
q. From Terminal Mode, press Ctrl+B then q.Keybindings don't work in Terminal Mode
Keybindings don't work in Terminal Mode
In Terminal Mode, your input goes to the shell. Use the
Ctrl+B prefix for TUIOS commands, or press Esc to return to Window Management Mode.Windows won't tile automatically
Windows won't tile automatically
Press
t in Window Management Mode to toggle tiling. The status bar should show “TILING” when enabled.Can't see scrollback history
Can't see scrollback history
Press
Ctrl+B then [ to enter copy mode. Use j/k to scroll up/down. TUIOS keeps 10,000 lines by default.Mouse isn't working
Mouse isn't working
Mouse support should work by default. Try clicking window borders to resize or drag title bars to move windows. Ensure your terminal supports mouse events.
Next Steps
Now that you know the basics, explore these advanced topics:Keybindings Reference
Complete list of all 100+ keyboard shortcuts organized by category
BSP Tiling Guide
Master Binary Space Partitioning with preselection, split control, and edge-based resizing
Configuration Guide
Customize keybindings, themes, and UI settings with TOML config
Tape Scripting
Automate workflows with the DSL, record sessions, and run scripts in CI/CD