about summary refs log blame commit diff stats
path: root/editor/subx.nanorc
blob: 9ac8c92afc93df88b9045417e6429f070b2a2532 (plain) (tree)
pan> color in range(-1, curses.COLORS): try: curses.init_pair(color, color, 0) except Exception: pass else: win.addstr(str(color) + ' ', curses.color_pair(color) | attr) curses.start_color() try: curses.use_default_colors() except Exception: pass win.addstr("available colors: %d\n\n" % curses.COLORS) print_all_colors(0) win.addstr("\n\n") print_all_colors(curses.A_BOLD) win.refresh() win.getch()