tty: create internal tty.h file