Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Side by Side Diff: third_party/colorama/ansitowin32.py

Issue 54603003: Update colorama from upstream to 5a3100113a3a. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/colorama/ansi.py ('k') | third_party/colorama/initialise.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1 # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
2 import re 2 import re
3 import sys 3 import sys
4 4
5 from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style 5 from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style
6 from .winterm import WinTerm, WinColor, WinStyle 6 from .winterm import WinTerm, WinColor, WinStyle
7 from .win32 import windll 7 from .win32 import windll
8 8
9 9
10 if windll is not None: 10 if windll is not None:
11 winterm = WinTerm() 11 winterm = WinTerm()
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 func = winterm.erase_data 180 func = winterm.erase_data
181 func(params, on_stderr=self.on_stderr) 181 func(params, on_stderr=self.on_stderr)
182 elif command == 'A': 182 elif command == 'A':
183 if params == () or params == None: 183 if params == () or params == None:
184 num_rows = 1 184 num_rows = 1
185 else: 185 else:
186 num_rows = params[0] 186 num_rows = params[0]
187 func = winterm.cursor_up 187 func = winterm.cursor_up
188 func(num_rows, on_stderr=self.on_stderr) 188 func(num_rows, on_stderr=self.on_stderr)
189 189
OLDNEW
« no previous file with comments | « third_party/colorama/ansi.py ('k') | third_party/colorama/initialise.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698