Library for Building a Shell with Ruby?

Hi,

I wonder if anyone knows a good library/gem for building an own shell in
Ruby? What I want is

  • a shell which runs in a loop
  • taking userinput (commands with multiple arguments)
  • a history (arrow up, arrow down - just like bash)
  • command completion with tab
  • ANSI coloring

So in principle a lot of the features of irb but to fill with my own
commands an logic…

I tried Highline, but that’s not really what I am searching for. So if
anyone has a good idea, I would be very glad.

Best,
Christoph.