Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redraw of WPT UI output, and slightly improve line counting #8861

Merged
merged 2 commits into from Dec 7, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -57,7 +57,7 @@ def get_move_up_and_clear_eol_codes(self):

try:
self.terminal = blessings.Terminal()
return self.terminal.clear_eol, self.terminal.move_up
return self.terminal.move_up, self.terminal.clear_eol
except Exception as exception:
sys.stderr.write("GroupingFormatter: Could not get terminal "
"control characters: %s\n" % exception)
@@ -67,7 +67,7 @@ def text_to_erase_display(self):
if not self.interactive or not self.current_display:
return ""
return ((self.move_up + self.clear_eol) *
len(self.current_display.splitlines()))
self.current_display.count('\n'))

def generate_output(self, text=None, new_display=None):
if not self.interactive:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.