Terminal emulator library

Hi all:

I’m looking into writing a terminal-emulator based database interface
with
Ruby. I want it to be totally cross-platform and I’d like as many
options
as possible in constructing the terminal interface the way I want it.
Any
ideas which library(s) or tools I should use?

Kenquad