• Home
  • Raw
  • Download

Lines Matching +full:detect +full:- +full:newline

1 # -*- coding: utf-8 -*-
3 # Use of this source code is governed by a BSD-style license that can be
100 width = max(1, self._GetTerminalSize().columns -
104 unshaded = '-' * (width - block)
132 One example use of this method could be to detect 'foo' in stdout and
272 the progress bar isn't displayed, then the return value is -1.
298 return -1
357 # -1 = no newline pending
358 # n = newline pending, and line length of last line was n
359 self._pending_nl = -1
432 self._Progress(total - pending, total)
451 pad = max(self._update_len - len(update_str), 0)
471 if self._pending_nl != -1:
475 print(' ' * (self._update_len - self._pending_nl), end='')
477 # Output the newline, and reset our counter.
488 self._pending_nl = -1
524 def _Out(self, stream, text, display, newline=False, do_output_filter=True): argument
547 sys.stdout - received on stdout
548 sys.stderr - received on stderr
549 None - generated by us / internally
552 newline: True to start a new line after this text, False to put the next
562 # If a newline is required, remember to output it later.
563 if newline:
570 if newline:
589 whole lines - this method happily handles fragments and tries to
598 for line in lines[:-1]:
599 self._Out(stream, line, display=self.verbose, newline=True)
603 if lines[-1]:
604 self._Out(stream, lines[-1], display=self.verbose)
619 self._Out(None, line, display=True, newline=True)
629 display=self.verbose, newline=True, do_output_filter=False)
639 display=True, newline=True, do_output_filter=False)
649 display=True, newline=True, do_output_filter=False)
659 display=True, newline=True, do_output_filter=False)