ratatui-textarea is a versatile text editor widget for terminal user interfaces supporting multi-line editing, keyboard shortcuts, undo/redo, search, selection, and mouse interaction.
How It Works
While building a simple screen-based program, you find this ready-made text box that lets people type and edit multi-line notes right in the terminal.
You run a few demo programs to see the editor in action, watching it handle typing, scrolling, and shortcuts just like a familiar word processor.
You type away, delete words, undo mistakes, and search for phrases – it feels powerful and responsive, highlighting matches instantly.
You adjust details like tab spacing, line numbers, or even add a placeholder hint, making it perfect for your program's look.
You easily add the text box to your terminal app's screen layout, connecting it to handle keyboard and mouse inputs.
You run your program, edit some text, save changes, and see everything work seamlessly across the screen.
Friends and users rave about the intuitive editor in your terminal app, making note-taking or input feel effortless and fun.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.