Terminfo and more

+ Terminfo support
! Some bugfixes
+ And more