r/Kotlin • • 14h ago

I built a modern terminal in Kotlin: Meet KetraTerm

Thumbnail gallery
3 Upvotes

Hey everyone!

I've just released KetraTerm 1.0, an open-source terminal emulator written in Kotlin.

KetraTerm is a fast, modern terminal with its own JVM-native engine and a custom Swing renderer. It's designed for everyday shell usage as well as demanding terminal applications, from file managers and dashboards to coding agents.

It supports Kitty keyboard, Kitty graphics with image rendering, Unicode 17 graphemes, TrueColor, modern underline styles, hyperlinks, synchronized output, and more.

Besides supporting modern terminal applications, I've been working on features that make everyday terminal usage more convenient:

  • Smart suggestions: Complete commands, arguments, paths, and Git branches. The suggestions engine can also learn from successfully executed commands and your usage to improve future results.
  • Sticky command headers: Keep the command that produced an output visible while scrolling through it.
  • Command navigation: Jump between commands, select entire command blocks, and copy their output.
  • Customizable prompts: Choose between gutters and dividers, with visual indicators for failed commands.
  • Notifications and progress: Get alerts when long-running commands finish, along with terminal notifications and progress indicators.

I've also put a lot of effort into responsiveness and keeping memory allocations low. KetraTerm uses its own terminal engine rather than wrapping another emulator, and its renderer updates only the parts of the screen that changed when possible.

It's available as a desktop terminal for Windows, macOS, and Linux, a JetBrains IDE plugin, and reusable Kotlin/JVM libraries.

The project is open source under the Apache 2.0 license, and I'm continuing to improve compatibility, performance, and the overall user experience.

Contributions are very welcome! Whether you're interested in terminal protocols, performance optimizations, UI improvements, or documentation, feel free to open an issue or submit a PR.

I'd really appreciate feedback, especially from people using complex TUIs or coding agents. I'm also interested in hearing what features you find useful in your current terminal and what you'd like to see improved!

Website / Downloads: https://ketraterm.github.io/KetraTerm/

GitHub: https://github.com/ketraterm/KetraTerm

JetBrains plugin: https://plugins.jetbrains.com/plugin/32589-ketraterm/


r/Kotlin • • 22h ago

I taught a neural network to play Flappy Bird with pure Kotlin and Swing

Post image
1 Upvotes