A LaTeX math shell for the terminal. Type an expression, press Enter, and it renders in place — shell flow like zsh or bash, math layout from opentui-math.
texsh> x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
╭────────
-b ± √ b² - 4ac
x = ─────────────────
2a
texsh> \int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
∞ -x² ╭─
∫ e dx = √ π
-∞
On Kitty-compatible terminals (Ghostty, Kitty, WezTerm) formulas also render as high-resolution MathJax graphics, with automatic Unicode-cell fallback everywhere else.
- Bun ≥ 1.3
- A real terminal (not a bare pipe)
bun install
bun startOr:
bun index.ts| Input | What happens |
|---|---|
| LaTeX expression | Rendered below the prompt |
help / ? |
Built-in command list |
examples |
Sample formulas to try |
history |
Past inputs |
mode auto|kitty|cells |
Switch graphics backend |
clear / Ctrl+L |
Clear scrollback |
exit / Ctrl+C |
Leave the shell |
| ↑ / ↓ | Previous / next command |
Common delimiters are stripped automatically, so pasting $E=mc^2$, $$...$$, \(...\), or \[...\] works.
- @opentui/core — terminal UI (prompt, scroll history, input)
- opentui-math — LaTeX → Unicode cells / Kitty graphics
MIT