remove termcap dependency and make work on my machine