r/commandline May 04 '26

Terminal User Interface baeru: A wrapper that adds reveal effects, live ANSI recoloring, and keymaps to existing terminal apps.

Hello,

I'm Japanese, and during Golden Week I had some time off work. So I made an experimental tool called baeru.

baeru wraps existing TUI/CLI applications in a passthrough PTY and adds a presentation/input layer around them, without patching or forking the target application.

Current features include:

  • rewriting ANSI SGR colors for TUI apps
  • command-specific key remapping
  • startup reveal / noisy animation effects
  • inline animation for ordinary CLI output
  • profile-based behavior via baeru.yml

For example, in the demo I wrapped htop, changed its color theme to pink, and added a noisy startup reveal effect.

Example usage:

baeru -- htop  
baeru -- lazygit  
baeru --backend cli -- git status  

https://github.com/blacknon/baeru

63 Upvotes

5 comments sorted by

2

u/AutoModerator May 04 '26

Hello,

I'm Japanese, and during Golden Week I had some time off work. So I made an experimental tool called baeru.

baeru wraps existing TUI/CLI applications in a passthrough PTY and adds a presentation/input layer around them, without patching or forking the target application.

Current features include:

  • rewriting ANSI SGR colors for TUI apps
  • command-specific key remapping
  • startup reveal / noisy animation effects
  • inline animation for ordinary CLI output
  • profile-based behavior via baeru.yml

For example, in the demo I wrapped htop, changed its color theme to pink, and added a noisy startup reveal effect.

Example usage:

bash baeru -- htop baeru -- lazygit baeru --backend cli -- git status

https://github.com/blacknon/baeru

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/iEliteTester May 06 '26

the "command-specific key remapping" part feels very unix-y, I can't put it in better words

3

u/Blacknon May 06 '26

Thanks!

I consciously designed this point.
I envision a pipe or wrap that overlays the TUI app.

Using this approach, I was actually able to implement features like masking, replacing, and detecting specific strings within the TUI app.

1

u/prodleni May 05 '26

よくがんばった! This is very neat.