move extra::terminfo to libterminfo