added terminfo into targets
fixed bug