deluge.ui.console.colors

exception deluge.ui.console.colors.BadColorString
Bases: exceptions.Exception
deluge.ui.console.colors.get_line_length(line, encoding='UTF-8')
Returns the string length without the color formatting.
deluge.ui.console.colors.init_colors()
deluge.ui.console.colors.parse_color_string(s, encoding='UTF-8')

Parses a string and returns a list of 2-tuples (color, string).

:param s:, string to parse :param encoding: the encoding to use on output

deluge.ui.console.colors.replace_tabs(line)
Returns a string with tabs replaced with spaces.
deluge.ui.console.colors.strip_colors(line)
Returns a string with the color formatting removed.

Previous topic

deluge.ui.ui

Next topic

deluge.ui.console.eventlog

This Page