fix termcap