Searched refs:term_width (Results 1 – 2 of 2) sorted by relevance
152 static int term_width = -1; in pretty_print_line() local155 if (term_width < 0) { in pretty_print_line()156 term_width = get_terminal_width(); in pretty_print_line()158 if (term_width > 80) { in pretty_print_line()159 term_width -= 80; in pretty_print_line()160 w = term_width / 10; in pretty_print_line()163 term_width -= 2*w; in pretty_print_line()166 w = term_width/2; in pretty_print_line()
79 def term_width(out): function100 self.__width = term_width(out_file) # Line width, or None if not a tty.