Utils Terminal

inyoka.utils.terminal

Provides tools for terminals.

copyright:
  1. 2007-2024 by the Inyoka Team, see AUTHORS for more details.

license:

BSD, see LICENSE for more details.

class inyoka.utils.terminal.FancyPrinter(stream=None, color=None, bold=False, underscore=False, blink=False, reverse=False, conceal=False)

Prints colorful text into a terminal stream.

class inyoka.utils.terminal.ProgressBar(max_width)

Visualize a status bar on the console.

update(percent)

Update the visualization.

inyoka.utils.terminal.get_dimensions()

Return the current terminal dimensions or fall back to (80, 24).

inyoka.utils.terminal.percentize(steps)

Generate percental values.

inyoka.utils.terminal.show(string)

Show a string instantly on STDOUT.