DEV Community

祇沈
祇沈

Posted on

A custom terminal in Rust to fix CLI lag and auto-confirm

Hi HN,

I was frustrated with the native Windows terminal lagging and flickering during heavy CLI outputs (especially when interacting with AI CLI tools). On top of that, having to manually confirm "allow require" prompts over and over was driving me crazy.

Since I've been working with Rust and Tauri, I figured I’d just glue some underlying protocol libraries together and build a terminal tailored exactly to my own workflow.

Here is what I built (called "ter"):

  • Smooth Rendering: Optimized the backend to handle heavy text outputs without lagging.
  • Auto-Confirm (autosync): The backend PTY captures specific keywords and auto-confirms them for you.
  • Native OS Web Engine: Embedded directly so you can browse without leaving the terminal (bypasses the iframe blocking issues on sites like GitHub).
  • Built-in Editors: Ships with Vim and Monaco (the VS Code engine).
  • "Lazy" Background Mounting: Exit the app and it auto-mounts your sessions to resume later.

It’s completely open-source. The UI settings section is still a bit buggy, but the core functionality has made it a really solid daily driver for me.

Would love any feedback, or if anyone on Mac/Android wants to help test it out, PRs are welcome!

Top comments (0)