Skip to content

effect

Class: Effect

A collection of ANSI effects in the Python format.


Attribute: reset

Reset ANSI effect.

Source
reset = "\033[0m"
Example
from logpy.ansi import Effect

Effect.reset

Attribute: bold

Bold ANSI effect.

Source
bold = "\033[01m"
Example
from logpy.ansi import Effect

Effect.bold

Attribute: disable

Disable ANSI effect.

Source
disable = "\033[02m"
Example
from logpy.ansi import Effect

Effect.disable

Attribute: underline

Underline ANSI effect.

Source
underline = "\033[04m"
Example
from logpy.ansi import Effect

Effect.underline

Attribute: reverse

Reverse ANSI effect.

Source
reverse = "\033[07m"
Example
from logpy.ansi import Effect

Effect.reverse

Attribute: strikethrough

Strikethrough ANSI effect.

Source
strikethrough = "\033[09m"
Example
from logpy.ansi import Effect

Effect.strikethrough

Attribute: invisible

Invisible ANSI effect.

Source
invisible = "\033[08m"
Example
from logpy.ansi import Effect

Effect.invisible