hgext/histedit.py
changeset 42088 770e87999701
parent 42072 fc0095256513
child 42089 16692aa3472b
equal deleted inserted replaced
42087:2e2699af5649 42088:770e87999701
  1236     displayer.show(rule.ctx)
  1236     displayer.show(rule.ctx)
  1237     displayer.close()
  1237     displayer.close()
  1238     return displayer.hunk[rule.ctx.rev()].splitlines()
  1238     return displayer.hunk[rule.ctx.rev()].splitlines()
  1239 
  1239 
  1240 def _chisteditmain(repo, rules, stdscr):
  1240 def _chisteditmain(repo, rules, stdscr):
       
  1241     try:
       
  1242         curses.use_default_colors()
       
  1243     except curses.error:
       
  1244         pass
       
  1245 
  1241     # initialize color pattern
  1246     # initialize color pattern
  1242     curses.init_pair(COLOR_HELP, curses.COLOR_WHITE, curses.COLOR_BLUE)
  1247     curses.init_pair(COLOR_HELP, curses.COLOR_WHITE, curses.COLOR_BLUE)
  1243     curses.init_pair(COLOR_SELECTED, curses.COLOR_BLACK, curses.COLOR_WHITE)
  1248     curses.init_pair(COLOR_SELECTED, curses.COLOR_BLACK, curses.COLOR_WHITE)
  1244     curses.init_pair(COLOR_WARN, curses.COLOR_BLACK, curses.COLOR_YELLOW)
  1249     curses.init_pair(COLOR_WARN, curses.COLOR_BLACK, curses.COLOR_YELLOW)
  1245     curses.init_pair(COLOR_OK, curses.COLOR_BLACK, curses.COLOR_GREEN)
  1250     curses.init_pair(COLOR_OK, curses.COLOR_BLACK, curses.COLOR_GREEN)