Expand description
Module containing various utility functions.
Statics§
- ANSI_
BG_ COLOUR_ ESCAPES - ANSI background colour escapes.
- ANSI_
COLOURS_ BLACK_ BG - Linux-theme ANSI colours, in the same order as
ANSI_COLOUR_ESCAPES. - ANSI_
COLOURS_ WHITE_ BG - ANSI colours for a white-background terminal, in the same order as
ANSI_COLOUR_ESCAPES. - ANSI_
COLOUR_ ESCAPES - ANSI background colour escapes.
- ANSI_
RESET_ ATTRIBUTES - Reset ANSI attributes
- BMP_
MAGIC - Magic number used for determining whether an image is a BMP.
- GIF_
MAGIC - Magic number used for determining whether an image is a GIF.
- ICO_
MAGIC - Magic number used for determining whether an image is an ICO.
- JPEG_
MAGIC - Magic number used for determining whether an image is a JPEG.
- PNG_
MAGIC - Magic number used for determining whether an image is a PNG.
Functions§
- bg_
colours_ for - Get the background colour set for the specified foregournd colour set
- closest_
colour - Get the closest colour to the provided one out of the specified list of colours and retirn its index.
- mul_str
- Create a string consisting of
nrepetitions ofwhat.