a copy of mcurses for convinience