jterm — Java Terminal UI Toolkit
01Features
Everything you need to build a full terminal application — not just a menu screen.
Full Widget Set
A complete component system for building interactive TUIs.
- Button, Label, TextBox, TextArea
- Table, DataGrid, ListBox
- ListBox row segments — per-character-range styling on any row
- Row-style providers that dim non-selected rows while selection wins
- CheckBox, RadioGroup, ProgressBar
- MenuBar, Menu, MenuItem
- Panel, Border, Separator
- MarkdownWidget — render rich text in any panel
- Ghost-text autocomplete + spellcheck in TextBox/TextArea
Layout Managers
Position widgets without pixel math. Let the layout engine handle it.
- BorderLayout (north/south/east/west/center)
- LinearLayout (horizontal/vertical)
- GridLayout (rows × columns)
- Nested containers for complex UIs
Themes & Styling
Full terminal color support — 16-color, 256-color, and true color RGB.
- Built-in ThemeManager with swappable themes
- SGR support (bold, italic, underline, blink)
- Cell-level TextCell styling
- CP437 box-drawing characters
Charts & Data
Render data visualizations in the terminal. No external charting libs.
- Line charts, bar charts, sparklines
- Configurable axes, labels, colors
- TableModel + DataGrid for tabular data
- ResultSetGridModel — bind JDBC directly
- RegressionSeries — OLS trend lines with ±N·σ bands (linear or log-space)
- Per-point color palettes, fill-scale mode, null-safe rendering
Animations
25+ animated backgrounds and transition effects. Because terminals deserve to be alive.
- MatrixRain, Starfield, Fireworks, DvdLogo
- MandelbrotZoom, Spirograph, PlasmaWash
- CandlestickField — animated candle-chart scenery
- Fade, Wipe, Dissolve, Slide, BoxExpand, Zoom transitions
- AnimationManager with frame timing
- Sprites & particle effects
ANSI Art Renderer
Render full-color ANSI art files — splash screens, logos, background art. One part of the toolkit, not the whole story.
- Full SGR parser (cursor positioning, colors)
- 16-color, 256-color, true color support
- AnsiArtRenderer for full-screen display
- ScreenBuffer with double-buffering
Markdown Rendering
Render rich text documents inside any terminal panel — release notes, help pages, mail bodies.
- MarkdownWidget with word-wrap and scroll
- Headings, bullets, fenced code, quotes, rules
- Inline bold, italic, code, and links
- MarkdownParser usable standalone (widget-free)
Bitmap Fonts
Big Amiga-style bitmap text for splash screens, banners, and logos.
- BitmapFont + BitmapTextRenderer
- Load .jfont resources (banner, block8, block16)
- Per-color base, highlight, shadow, background
- Renders through the standard ScreenBuffer pipeline
Editing Intelligence
Autocomplete and spellcheck built into the text widgets.
- Ghost-text completion via CompletionProvider
- EnglishWordCompletionProvider ships with a dictionary
- Inline spellcheck with squiggle markers
- SpellcheckDictionary.of(...) or load your own
Sprites & Effects
A character-based sprite system for games, animations, and rich terminal art.
- Sprite + SpriteSheet for character art
- ParticleEffect for bursts and weather
- AnimatedText for typewriter effects
- SpriteRenderer composites onto any Screen
02Widgets
A component model that feels like Swing, not like ncurses.
Component-based architecture
jterm uses a proper component hierarchy — containers, layout managers, event listeners, focus management. Build complex multi-panel UIs the way you'd build a desktop app, not by manually positioning characters on a grid.
- Component → AbstractComponent → Widget
- Container → Panel → Window
- FocusManager for keyboard navigation
- Event listeners (click, key, focus, change)
- TableModel / ListModel data binding
03Animations
Terminal applications don't have to be static. 25+ animated backgrounds and transition effects ship in the box.
Animated Backgrounds
- MatrixRain, Starfield, TwinkleStarfield
- Fireworks, Snowfall, RainStorm
- LavaLamp, Aurora, OceanWaves
- CircuitBoard, PacketFlow
- MandelbrotZoom, Spirograph, PlasmaWash
- VoronoiCells, MoirePatterns
- DNAHelix, LightningStorm
- TickerTape, MarketDepth
- TickerTape 0.1.6 — CNBC palette, queue marquee, 4 fps delta refresh, pause-safe timing
- Table 0.1.7 — selection follows its row on insert/remove, block-safe
- DataGrid 0.1.9 — same content-anchored selection; model gains removeRow/insertRow
- jterm 0.1.9 — ART_DECO theme, stty raw size-query fix, virtual-selection model fixes
- PortfolioHeatmap, TerrainFlyover
- Scanlines, PhosphorDecay
- DvdLogo, CandlestickField
Screen Transitions
- FadeTransition
- WipeTransition
- DissolveTransition
- SlideTransition
- BoxExpand, ZoomIn, ZoomOut
- Randomized per navigation
Sprites & Effects
- SpriteSheet for character art
- ParticleEffect for bursts
- AnimatedText for typewriter
- AnimatedBorder, MarchingAnts, SparkleCorners, ScanningLine, RotatingDashCorners, ColorPulse effects
- AnimationFrame timing control
04Quick Start
Add the dependency, write a few lines, run it. That's it.
Maven
Add jterm to your pom.xml. Published to Maven Central — latest release 0.1.9.
- Requires JDK 26+
- No native libraries
- Works on any terminal — SSH, Telnet, local console, web terminal
- Single fat JAR option
05Built With jterm
jterm powers real applications — not just demos.
Phosphor BBS
A full-featured SSH/Telnet BBS with message boards, real-time chat, door games, file archives, and mesh networking over LoRa radio. 870+ Java files built on jterm's widget, animation, and screen systems.
- Multi-caller SSH + Telnet server
- ANSI art splash screens
- Animated screen transitions
- Dashboard with live session monitoring
- Stock/finance screens with charts
06Why jterm?
The Java ecosystem deserves a terminal UI framework — not just an ANSI escape code wrapper.
Pure Java
No JNI. No native binaries. No platform-specific builds. One JAR works everywhere Java does.
Modern Java
Built for JDK 26. Uses records, sealed interfaces, pattern matching, and var throughout. No legacy cruft.
Testable
2,900+ tests. Screen buffers are inspectable. Widgets render to off-screen buffers you can assert against. No terminal required to test.
Full Framework
Screen buffers, text graphics, layout managers, focus management, event listeners, component hierarchy, theming. Everything Swing has — for the terminal.
Self-Contained
Zero runtime dependencies. Drop the JAR in and go. Works in standalone apps, server daemons, or embedded devices.
07Docs
API reference is generated from the source and ships with every build.
Javadoc
Every public class, method, and record is documented. Generate the full API reference locally:
- git clone https://github.com/phosphorbbsbot/jterm
- cd jterm && mvn javadoc:javadoc
- Open target/reports/apidocs/index.html
Guides
Deep-dive write-ups on the architecture:
- Sprite & animation guide
- DataGrid design notes
- 11 runnable demos in src/main/java/io.jterm.demo