use lib/mycurses.rb in cursestest and fix an issue with Format::parse_format