start working on a terminfo wrapper