Refactor catv. Move visible() from stty to libbb.