On this page
  1. curses.init_color
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

curses.init_color

Prev: curses.has_key | Up: curses | Next: curses.init_pair
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.init_color
Tags: #public #python3 #stdlib #curses


Import

import curses
from curses import init_color

Signature & Overview

curses.init_color(color_number, r, g, b, /)

Change the definition of a color.

Usage

import curses

# Redefines a color slot: curses.init_color(color_num, r, g, b) with 0..1000 values
assert callable(curses.init_color)

Gotchas

REPL Inspect

from curses import init_color
help(init_color)

Linked from

Related notes