A basic system library for accessing the termcap database