changeset 35528 | fb2e59e92651 |
parent 35527 | f43dc62cfe11 |
child 36305 | a8bca9d0cea0 |
--- a/mercurial/crecord.py Thu Jan 04 12:12:07 2018 +0100 +++ b/mercurial/crecord.py Thu Jan 04 12:34:40 2018 +0100 @@ -1719,7 +1719,10 @@ self.yscreensize, self.xscreensize = self.stdscr.getmaxyx() curses.start_color() - curses.use_default_colors() + try: + curses.use_default_colors() + except curses.error: + self.usecolor = False # available colors: black, blue, cyan, green, magenta, white, yellow # init_pair(color_id, foreground_color, background_color)