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

curses.can_change_color

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


Import

import curses
from curses import can_change_color

Signature & Overview

curses.can_change_color()

Return True if the programmer can change the colors displayed by the terminal.

Usage

import curses

# Checks whether the terminal supports redefining RGB colors via init_color()
assert callable(curses.can_change_color)

Gotchas

REPL Inspect

from curses import can_change_color
help(can_change_color)

Linked from

Related notes