libv8 7.3.492.27.3beta1 → 7.4.288.28.0beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -0
  3. data/lib/libv8/version.rb +1 -1
  4. data/vendor/depot_tools/annotated_gclient.py +4 -2
  5. data/vendor/depot_tools/auth.py +2 -0
  6. data/vendor/depot_tools/autoninja +3 -1
  7. data/vendor/depot_tools/autoninja.bat +1 -1
  8. data/vendor/depot_tools/autoninja.py +3 -1
  9. data/vendor/depot_tools/bb +1 -1
  10. data/vendor/depot_tools/bootstrap/win/manifest.txt +1 -1
  11. data/vendor/depot_tools/buildbucket.py +8 -6
  12. data/vendor/depot_tools/checkout.py +7 -5
  13. data/vendor/depot_tools/cipd +1 -1
  14. data/vendor/depot_tools/cipd_manifest.txt +4 -4
  15. data/vendor/depot_tools/cipd_manifest.versions +80 -80
  16. data/vendor/depot_tools/cit.py +9 -7
  17. data/vendor/depot_tools/clang_format.py +4 -1
  18. data/vendor/depot_tools/clang_format_merge_driver.py +9 -7
  19. data/vendor/depot_tools/compile_single_file.py +3 -1
  20. data/vendor/depot_tools/dart_format.py +4 -2
  21. data/vendor/depot_tools/depot-tools-auth.py +10 -8
  22. data/vendor/depot_tools/fix_encoding.py +5 -2
  23. data/vendor/depot_tools/gclient-new-workdir.py +2 -0
  24. data/vendor/depot_tools/gclient.py +8 -9
  25. data/vendor/depot_tools/gclient_scm.py +54 -28
  26. data/vendor/depot_tools/gclient_utils.py +14 -4
  27. data/vendor/depot_tools/gerrit_util.py +8 -6
  28. data/vendor/depot_tools/git_cache.py +53 -37
  29. data/vendor/depot_tools/git_cl.py +115 -42
  30. data/vendor/depot_tools/git_drover.py +3 -1
  31. data/vendor/depot_tools/git_find_releases.py +8 -6
  32. data/vendor/depot_tools/git_footers.py +7 -5
  33. data/vendor/depot_tools/git_freezer.py +3 -1
  34. data/vendor/depot_tools/git_map_branches.py +7 -5
  35. data/vendor/depot_tools/git_mark_merge_base.py +8 -6
  36. data/vendor/depot_tools/git_nav_downstream.py +7 -5
  37. data/vendor/depot_tools/git_number.py +3 -1
  38. data/vendor/depot_tools/git_rebase_update.py +38 -43
  39. data/vendor/depot_tools/git_reparent_branch.py +8 -6
  40. data/vendor/depot_tools/git_upstream_diff.py +4 -2
  41. data/vendor/depot_tools/gn.py +6 -4
  42. data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
  43. data/vendor/depot_tools/led +1 -1
  44. data/vendor/depot_tools/luci-auth +1 -1
  45. data/vendor/depot_tools/lucicfg +1 -1
  46. data/vendor/depot_tools/mac_toolchain +1 -1
  47. data/vendor/depot_tools/man/html/depot_tools.html +1 -1
  48. data/vendor/depot_tools/man/html/depot_tools_tutorial.html +28 -22
  49. data/vendor/depot_tools/man/html/git-cl.html +1 -1
  50. data/vendor/depot_tools/man/html/git-drover.html +18 -18
  51. data/vendor/depot_tools/man/html/git-footers.html +1 -1
  52. data/vendor/depot_tools/man/html/git-freeze.html +3 -3
  53. data/vendor/depot_tools/man/html/git-hyper-blame.html +1 -1
  54. data/vendor/depot_tools/man/html/git-map-branches.html +2 -2
  55. data/vendor/depot_tools/man/html/git-map.html +1 -1
  56. data/vendor/depot_tools/man/html/git-mark-merge-base.html +1 -1
  57. data/vendor/depot_tools/man/html/git-nav-downstream.html +3 -3
  58. data/vendor/depot_tools/man/html/git-nav-upstream.html +12 -6
  59. data/vendor/depot_tools/man/html/git-new-branch.html +1 -1
  60. data/vendor/depot_tools/man/html/git-rebase-update.html +20 -1
  61. data/vendor/depot_tools/man/html/git-rename-branch.html +1 -1
  62. data/vendor/depot_tools/man/html/git-reparent-branch.html +1 -1
  63. data/vendor/depot_tools/man/html/git-retry.html +1 -1
  64. data/vendor/depot_tools/man/html/git-squash-branch.html +1 -1
  65. data/vendor/depot_tools/man/html/git-thaw.html +1 -1
  66. data/vendor/depot_tools/man/html/git-upstream-diff.html +10 -6
  67. data/vendor/depot_tools/man/man1/git-cl.1 +4 -4
  68. data/vendor/depot_tools/man/man1/git-drover.1 +21 -21
  69. data/vendor/depot_tools/man/man1/git-footers.1 +4 -4
  70. data/vendor/depot_tools/man/man1/git-freeze.1 +6 -6
  71. data/vendor/depot_tools/man/man1/git-hyper-blame.1 +4 -4
  72. data/vendor/depot_tools/man/man1/git-map-branches.1 +4 -4
  73. data/vendor/depot_tools/man/man1/git-map.1 +4 -4
  74. data/vendor/depot_tools/man/man1/git-mark-merge-base.1 +4 -4
  75. data/vendor/depot_tools/man/man1/git-nav-downstream.1 +6 -6
  76. data/vendor/depot_tools/man/man1/git-nav-upstream.1 +15 -9
  77. data/vendor/depot_tools/man/man1/git-new-branch.1 +3 -3
  78. data/vendor/depot_tools/man/man1/git-rebase-update.1 +14 -4
  79. data/vendor/depot_tools/man/man1/git-rename-branch.1 +4 -4
  80. data/vendor/depot_tools/man/man1/git-reparent-branch.1 +4 -4
  81. data/vendor/depot_tools/man/man1/git-retry.1 +4 -4
  82. data/vendor/depot_tools/man/man1/git-squash-branch.1 +4 -4
  83. data/vendor/depot_tools/man/man1/git-thaw.1 +4 -4
  84. data/vendor/depot_tools/man/man1/git-upstream-diff.1 +7 -13
  85. data/vendor/depot_tools/man/man7/depot_tools.7 +4 -4
  86. data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +33 -27
  87. data/vendor/depot_tools/man/src/filter_demo_output.py +3 -1
  88. data/vendor/depot_tools/man/src/git-rebase-update.txt +7 -0
  89. data/vendor/depot_tools/my_activity.py +13 -11
  90. data/vendor/depot_tools/my_reviews.py +34 -29
  91. data/vendor/depot_tools/ninjalog_uploader_wrapper.py +4 -2
  92. data/vendor/depot_tools/owners_finder.py +3 -1
  93. data/vendor/depot_tools/patch.py +1 -1
  94. data/vendor/depot_tools/post_build_ninja_summary.py +17 -15
  95. data/vendor/depot_tools/presubmit_canned_checks.py +3 -1
  96. data/vendor/depot_tools/presubmit_support.py +10 -5
  97. data/vendor/depot_tools/prpc +1 -1
  98. data/vendor/depot_tools/recipes/README.recipes.md +17 -17
  99. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +1 -6
  100. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +2 -4
  101. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +1 -6
  102. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/unrecognized_commit_repo.json +0 -5
  103. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/describe-failed.json +2 -4
  104. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_file.json +25 -5
  105. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_mode.json +23 -5
  106. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_verfile.json +23 -5
  107. data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +0 -6
  108. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.py +0 -1
  109. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +1 -5
  110. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/can_fail_build.json +1 -6
  111. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_with_bad_output_fails_build.json +0 -5
  112. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/rebase_failed.json +1 -6
  113. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/set_failure_hash_with_no_steps.json +1 -3
  114. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +4 -6
  115. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch_and_target_ref.json +4 -6
  116. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_git_patch.json +4 -6
  117. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_git_patch_luci.json +4 -6
  118. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch.json +4 -6
  119. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch_new.json +4 -6
  120. data/vendor/depot_tools/rietveld.py +3 -1
  121. data/vendor/depot_tools/roll_dep.py +2 -0
  122. data/vendor/depot_tools/roll_dep_svn.py +14 -11
  123. data/vendor/depot_tools/scm.py +10 -5
  124. data/vendor/depot_tools/split_cl.py +13 -11
  125. data/vendor/depot_tools/subprocess2.py +1 -1
  126. data/vendor/depot_tools/third_party/colorama/LICENSE.txt +0 -1
  127. data/vendor/depot_tools/third_party/colorama/README.chromium +4 -5
  128. data/vendor/depot_tools/third_party/colorama/README.rst +346 -0
  129. data/vendor/depot_tools/third_party/colorama/__init__.py +3 -4
  130. data/vendor/depot_tools/third_party/colorama/ansi.py +82 -30
  131. data/vendor/depot_tools/third_party/colorama/ansitowin32.py +105 -37
  132. data/vendor/depot_tools/third_party/colorama/initialise.py +39 -15
  133. data/vendor/depot_tools/third_party/colorama/win32.py +46 -28
  134. data/vendor/depot_tools/third_party/colorama/winterm.py +80 -31
  135. data/vendor/depot_tools/third_party/upload.py +1 -1
  136. data/vendor/depot_tools/upload_to_google_storage.py +8 -6
  137. data/vendor/depot_tools/vpython +1 -1
  138. data/vendor/depot_tools/watchlists.py +5 -3
  139. data/vendor/depot_tools/weekly +4 -2
  140. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +38 -36
  141. data/vendor/depot_tools/win_toolchain/package_from_installed.py +10 -8
  142. data/vendor/depot_tools/wtf +5 -3
  143. metadata +3 -3
  144. data/vendor/depot_tools/third_party/colorama/README.txt +0 -304
@@ -30,6 +30,8 @@ useful as the resulting zip can't be redistributed, and most will presumably
30
30
  have a Pro license anyway).
31
31
  """
32
32
 
33
+ from __future__ import print_function
34
+
33
35
  import collections
34
36
  import glob
35
37
  import json
@@ -409,14 +411,14 @@ def AddEnvSetup(files):
409
411
  'win_sdk\\bin\\SetEnv.arm64.json'))
410
412
  vs_version_file = os.path.join(tempdir, 'VS_VERSION')
411
413
  with open(vs_version_file, 'wb') as version:
412
- print >>version, VS_VERSION
414
+ print(VS_VERSION, file=version)
413
415
  files.append((vs_version_file, 'VS_VERSION'))
414
416
 
415
417
 
416
418
  def RenameToSha1(output):
417
419
  """Determine the hash in the same way that the unzipper does to rename the
418
420
  # .zip file."""
419
- print 'Extracting to determine hash...'
421
+ print('Extracting to determine hash...')
420
422
  tempdir = tempfile.mkdtemp()
421
423
  old_dir = os.getcwd()
422
424
  os.chdir(tempdir)
@@ -424,13 +426,13 @@ def RenameToSha1(output):
424
426
  with zipfile.ZipFile(
425
427
  os.path.join(old_dir, output), 'r', zipfile.ZIP_DEFLATED, True) as zf:
426
428
  zf.extractall(rel_dir)
427
- print 'Hashing...'
429
+ print('Hashing...')
428
430
  sha1 = get_toolchain_if_necessary.CalculateHash(rel_dir, None)
429
431
  os.chdir(old_dir)
430
432
  shutil.rmtree(tempdir)
431
433
  final_name = sha1 + '.zip'
432
434
  os.rename(output, final_name)
433
- print 'Renamed %s to %s.' % (output, final_name)
435
+ print('Renamed %s to %s.' % (output, final_name))
434
436
 
435
437
 
436
438
  def main():
@@ -454,7 +456,7 @@ def main():
454
456
  files = BuildRepackageFileList(options.repackage_dir)
455
457
  else:
456
458
  if len(args) != 1 or args[0] not in ('2015', '2017'):
457
- print 'Must specify 2015 or 2017'
459
+ print('Must specify 2015 or 2017')
458
460
  parser.print_help();
459
461
  return 1
460
462
 
@@ -462,7 +464,7 @@ def main():
462
464
  if (not os.path.exists(os.path.join(options.override_dir, 'bin')) or
463
465
  not os.path.exists(os.path.join(options.override_dir, 'include')) or
464
466
  not os.path.exists(os.path.join(options.override_dir, 'lib'))):
465
- print 'Invalid override directory - must contain bin/include/lib dirs'
467
+ print('Invalid override directory - must contain bin/include/lib dirs')
466
468
  return 1
467
469
 
468
470
  global VS_VERSION
@@ -478,14 +480,14 @@ def main():
478
480
  else:
479
481
  VC_TOOLS = 'VC'
480
482
 
481
- print 'Building file list for VS %s Windows %s...' % (VS_VERSION, WIN_VERSION)
483
+ print('Building file list for VS %s Windows %s...' % (VS_VERSION, WIN_VERSION))
482
484
  files = BuildFileList(options.override_dir)
483
485
 
484
486
  AddEnvSetup(files)
485
487
 
486
488
  if False:
487
489
  for f in files:
488
- print f[0], '->', f[1]
490
+ print(f[0], '->', f[1])
489
491
  return 0
490
492
 
491
493
  output = 'out.zip'
@@ -5,6 +5,8 @@
5
5
 
6
6
  """Display active git branches and code changes in a chromiumos workspace."""
7
7
 
8
+ from __future__ import print_function
9
+
8
10
  import gclient_utils
9
11
  import os
10
12
  import re
@@ -38,7 +40,7 @@ def show_dir(full_name, relative_name, color):
38
40
  if lines_printed == 0:
39
41
  show_name()
40
42
  lines_printed += 1
41
- print branch
43
+ print(branch)
42
44
 
43
45
  status = subprocess.Popen(['git', 'status'],
44
46
  cwd=full_name,
@@ -48,8 +50,8 @@ def show_dir(full_name, relative_name, color):
48
50
  if lines_printed == 0:
49
51
  show_name()
50
52
  if lines_printed == 1:
51
- print '---------------'
52
- print status
53
+ print('---------------')
54
+ print(status)
53
55
 
54
56
 
55
57
  def main():
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.492.27.3beta1
4
+ version: 7.4.288.28.0beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-03 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -708,7 +708,7 @@ files:
708
708
  - vendor/depot_tools/third_party/boto/utils.py
709
709
  - vendor/depot_tools/third_party/colorama/LICENSE.txt
710
710
  - vendor/depot_tools/third_party/colorama/README.chromium
711
- - vendor/depot_tools/third_party/colorama/README.txt
711
+ - vendor/depot_tools/third_party/colorama/README.rst
712
712
  - vendor/depot_tools/third_party/colorama/__init__.py
713
713
  - vendor/depot_tools/third_party/colorama/ansi.py
714
714
  - vendor/depot_tools/third_party/colorama/ansitowin32.py
@@ -1,304 +0,0 @@
1
- Download and docs:
2
- http://pypi.python.org/pypi/colorama
3
- Development:
4
- http://code.google.com/p/colorama
5
- Discussion group:
6
- https://groups.google.com/forum/#!forum/python-colorama
7
-
8
- Description
9
- ===========
10
-
11
- Makes ANSI escape character sequences for producing colored terminal text and
12
- cursor positioning work under MS Windows.
13
-
14
- ANSI escape character sequences have long been used to produce colored terminal
15
- text and cursor positioning on Unix and Macs. Colorama makes this work on
16
- Windows, too, by wrapping stdout, stripping ANSI sequences it finds (which
17
- otherwise show up as gobbledygook in your output), and converting them into the
18
- appropriate win32 calls to modify the state of the terminal. On other platforms,
19
- Colorama does nothing.
20
-
21
- Colorama also provides some shortcuts to help generate ANSI sequences
22
- but works fine in conjunction with any other ANSI sequence generation library,
23
- such as Termcolor (http://pypi.python.org/pypi/termcolor.)
24
-
25
- This has the upshot of providing a simple cross-platform API for printing
26
- colored terminal text from Python, and has the happy side-effect that existing
27
- applications or libraries which use ANSI sequences to produce colored output on
28
- Linux or Macs can now also work on Windows, simply by calling
29
- ``colorama.init()``.
30
-
31
- An alternative approach is to install 'ansi.sys' on Windows machines, which
32
- provides the same behaviour for all applications running in terminals. Colorama
33
- is intended for situations where that isn't easy (e.g. maybe your app doesn't
34
- have an installer.)
35
-
36
- Demo scripts in the source code repository prints some colored text using
37
- ANSI sequences. Compare their output under Gnome-terminal's built in ANSI
38
- handling, versus on Windows Command-Prompt using Colorama:
39
-
40
- .. image:: http://colorama.googlecode.com/hg/screenshots/ubuntu-demo.png
41
- :width: 661
42
- :height: 357
43
- :alt: ANSI sequences on Ubuntu under gnome-terminal.
44
-
45
- .. image:: http://colorama.googlecode.com/hg/screenshots/windows-demo.png
46
- :width: 668
47
- :height: 325
48
- :alt: Same ANSI sequences on Windows, using Colorama.
49
-
50
- These screengrabs show that Colorama on Windows does not support ANSI 'dim
51
- text': it looks the same as 'normal text'.
52
-
53
-
54
- License
55
- =======
56
-
57
- Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
58
-
59
-
60
- Dependencies
61
- ============
62
-
63
- None, other than Python. Tested on Python 2.5.5, 2.6.5, 2.7, 3.1.2, and 3.2
64
-
65
- Usage
66
- =====
67
-
68
- Initialisation
69
- --------------
70
-
71
- Applications should initialise Colorama using::
72
-
73
- from colorama import init
74
- init()
75
-
76
- If you are on Windows, the call to ``init()`` will start filtering ANSI escape
77
- sequences out of any text sent to stdout or stderr, and will replace them with
78
- equivalent Win32 calls.
79
-
80
- Calling ``init()`` has no effect on other platforms (unless you request other
81
- optional functionality, see keyword args below.) The intention is that
82
- applications can call ``init()`` unconditionally on all platforms, after which
83
- ANSI output should just work.
84
-
85
- To stop using colorama before your program exits, simply call ``deinit()``.
86
- This will restore stdout and stderr to their original values, so that Colorama
87
- is disabled. To start using Colorama again, call ``reinit()``, which wraps
88
- stdout and stderr again, but is cheaper to call than doing ``init()`` all over
89
- again.
90
-
91
-
92
- Colored Output
93
- --------------
94
-
95
- Cross-platform printing of colored text can then be done using Colorama's
96
- constant shorthand for ANSI escape sequences::
97
-
98
- from colorama import Fore, Back, Style
99
- print(Fore.RED + 'some red text')
100
- print(Back.GREEN + 'and with a green background')
101
- print(Style.DIM + 'and in dim text')
102
- print(Fore.RESET + Back.RESET + Style.RESET_ALL)
103
- print('back to normal now')
104
-
105
- or simply by manually printing ANSI sequences from your own code::
106
-
107
- print('/033[31m' + 'some red text')
108
- print('/033[30m' # and reset to default color)
109
-
110
- or Colorama can be used happily in conjunction with existing ANSI libraries
111
- such as Termcolor::
112
-
113
- from colorama import init
114
- from termcolor import colored
115
-
116
- # use Colorama to make Termcolor work on Windows too
117
- init()
118
-
119
- # then use Termcolor for all colored text output
120
- print(colored('Hello, World!', 'green', 'on_red'))
121
-
122
- Available formatting constants are::
123
-
124
- Fore: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET.
125
- Back: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET.
126
- Style: DIM, NORMAL, BRIGHT, RESET_ALL
127
-
128
- Style.RESET_ALL resets foreground, background and brightness. Colorama will
129
- perform this reset automatically on program exit.
130
-
131
-
132
- Cursor Positioning
133
- ------------------
134
-
135
- ANSI codes to reposition the cursor are supported. See demos/demo06.py for
136
- an example of how to generate them.
137
-
138
-
139
- Init Keyword Args
140
- -----------------
141
-
142
- ``init()`` accepts some kwargs to override default behaviour.
143
-
144
- init(autoreset=False):
145
- If you find yourself repeatedly sending reset sequences to turn off color
146
- changes at the end of every print, then ``init(autoreset=True)`` will
147
- automate that::
148
-
149
- from colorama import init
150
- init(autoreset=True)
151
- print(Fore.RED + 'some red text')
152
- print('automatically back to default color again')
153
-
154
- init(strip=None):
155
- Pass ``True`` or ``False`` to override whether ansi codes should be
156
- stripped from the output. The default behaviour is to strip if on Windows.
157
-
158
- init(convert=None):
159
- Pass ``True`` or ``False`` to override whether to convert ansi codes in the
160
- output into win32 calls. The default behaviour is to convert if on Windows
161
- and output is to a tty (terminal).
162
-
163
- init(wrap=True):
164
- On Windows, colorama works by replacing ``sys.stdout`` and ``sys.stderr``
165
- with proxy objects, which override the .write() method to do their work. If
166
- this wrapping causes you problems, then this can be disabled by passing
167
- ``init(wrap=False)``. The default behaviour is to wrap if autoreset or
168
- strip or convert are True.
169
-
170
- When wrapping is disabled, colored printing on non-Windows platforms will
171
- continue to work as normal. To do cross-platform colored output, you can
172
- use Colorama's ``AnsiToWin32`` proxy directly::
173
-
174
- import sys
175
- from colorama import init, AnsiToWin32
176
- init(wrap=False)
177
- stream = AnsiToWin32(sys.stderr).stream
178
-
179
- # Python 2
180
- print >>stream, Fore.BLUE + 'blue text on stderr'
181
-
182
- # Python 3
183
- print(Fore.BLUE + 'blue text on stderr', file=stream)
184
-
185
-
186
- Status & Known Problems
187
- =======================
188
-
189
- I've personally only tested it on WinXP (CMD, Console2), Ubuntu
190
- (gnome-terminal, xterm), and OSX.
191
-
192
- Some presumably valid ANSI sequences aren't recognised (see details below)
193
- but to my knowledge nobody has yet complained about this. Puzzling.
194
-
195
- See outstanding issues and wishlist at:
196
- http://code.google.com/p/colorama/issues/list
197
-
198
- If anything doesn't work for you, or doesn't do what you expected or hoped for,
199
- I'd love to hear about it on that issues list, would be delighted by patches,
200
- and would be happy to grant commit access to anyone who submits a working patch
201
- or two.
202
-
203
-
204
- Recognised ANSI Sequences
205
- =========================
206
-
207
- ANSI sequences generally take the form:
208
-
209
- ESC [ <param> ; <param> ... <command>
210
-
211
- Where <param> is an integer, and <command> is a single letter. Zero or more
212
- params are passed to a <command>. If no params are passed, it is generally
213
- synonymous with passing a single zero. No spaces exist in the sequence, they
214
- have just been inserted here to make it easy to read.
215
-
216
- The only ANSI sequences that colorama converts into win32 calls are::
217
-
218
- ESC [ 0 m # reset all (colors and brightness)
219
- ESC [ 1 m # bright
220
- ESC [ 2 m # dim (looks same as normal brightness)
221
- ESC [ 22 m # normal brightness
222
-
223
- # FOREGROUND:
224
- ESC [ 30 m # black
225
- ESC [ 31 m # red
226
- ESC [ 32 m # green
227
- ESC [ 33 m # yellow
228
- ESC [ 34 m # blue
229
- ESC [ 35 m # magenta
230
- ESC [ 36 m # cyan
231
- ESC [ 37 m # white
232
- ESC [ 39 m # reset
233
-
234
- # BACKGROUND
235
- ESC [ 40 m # black
236
- ESC [ 41 m # red
237
- ESC [ 42 m # green
238
- ESC [ 43 m # yellow
239
- ESC [ 44 m # blue
240
- ESC [ 45 m # magenta
241
- ESC [ 46 m # cyan
242
- ESC [ 47 m # white
243
- ESC [ 49 m # reset
244
-
245
- # cursor positioning
246
- ESC [ y;x H # position cursor at x across, y down
247
-
248
- # clear the screen
249
- ESC [ mode J # clear the screen. Only mode 2 (clear entire screen)
250
- # is supported. It should be easy to add other modes,
251
- # let me know if that would be useful.
252
-
253
- Multiple numeric params to the 'm' command can be combined into a single
254
- sequence, eg::
255
-
256
- ESC [ 36 ; 45 ; 1 m # bright cyan text on magenta background
257
-
258
- All other ANSI sequences of the form ``ESC [ <param> ; <param> ... <command>``
259
- are silently stripped from the output on Windows.
260
-
261
- Any other form of ANSI sequence, such as single-character codes or alternative
262
- initial characters, are not recognised nor stripped. It would be cool to add
263
- them though. Let me know if it would be useful for you, via the issues on
264
- google code.
265
-
266
-
267
- Development
268
- ===========
269
-
270
- Help and fixes welcome! Ask Jonathan for commit rights, you'll get them.
271
-
272
- Running tests requires:
273
-
274
- - Michael Foord's 'mock' module to be installed.
275
- - Tests are written using the 2010 era updates to 'unittest', and require to
276
- be run either using Python2.7 or greater, or else to have Michael Foord's
277
- 'unittest2' module installed.
278
-
279
- unittest2 test discovery doesn't work for colorama, so I use 'nose'::
280
-
281
- nosetests -s
282
-
283
- The -s is required because 'nosetests' otherwise applies a proxy of its own to
284
- stdout, which confuses the unit tests.
285
-
286
-
287
- Contact
288
- =======
289
-
290
- Created by Jonathan Hartley, tartley@tartley.com
291
-
292
-
293
- Thanks
294
- ======
295
- | Ben Hoyt, for a magnificent fix under 64-bit Windows.
296
- | Jesse@EmptySquare for submitting a fix for examples in the README.
297
- | User 'jamessp', an observant documentation fix for cursor positioning.
298
- | User 'vaal1239', Dave Mckee & Lackner Kristof for a tiny but much-needed Win7 fix.
299
- | Julien Stuyck, for wisely suggesting Python3 compatible updates to README.
300
- | Daniel Griffith for multiple fabulous patches.
301
- | Oscar Lesta for valuable fix to stop ANSI chars being sent to non-tty output.
302
- | Roger Binns, for many suggestions, valuable feedback, & bug reports.
303
- | Tim Golden for thought and much appreciated feedback on the initial idea.
304
-