coveralls: 
[![Coverage Status](https://coveralls.io/builds/22896148/badge)](https://coveralls.io/builds/22896148)

Coverage increased (+0.1%) to 94.822% when pulling **d724596c7a4e6bacd9ca4172361981c984ca0978 on sebageek:fix-write-spin-race-condition** into **62902dec938957120d7bec72cd974a75be0f187e on pavdmyt:master**.

pavdmyt: @sebageek thanks for fixing this!

What about unittests? Can we reproduce this somehow via tests?
sebageek: I don't think this PR will fix the underlying issue if the locks are atomic, as their function is to protect parts of the code that should happen without being interrupted. Take the following example of `_spin()` vs `write()`:
```
_spin():  sys.stdout.write(out)
_write(): sys.stdout.write("{0}\n".format(_text))
_spin():  self._clear_line()
```
This case would lead to the message written with `write()` being truncated by `_spin()` and to prevent that the lock needs to make sure that in `_spin()` the text plus clear line text is written at the same time without anyone writing to `sys.stdout` in that time.

For this I see two options:
 * protect the whole section where `sys.stdout` is accessed with one lock
 * compose the complete message beforehand and just have one `sys.stdout.write()` call and rely on `sys.stdout.write()` being somewhat thread safe (I'd believe it would write things at one go)

If the goal is on the other hand to also protect access to `_hide_cursor`, `_show_cursor` and `_clear_line` for future development we could exchange the `Lock()` with an `RLock()` and add an additional `with self._stdout_lock` around these functions.
pavdmyt: I'm going to vacation next week. Will proceed with this PR a bit later.
sebageek: I took another look at this after writing the already to this PR commited test. I think `sys.stdout.write()` is handled as an atomic operation. Therefore converging all writes of a function into a single `sys.stdout.write()` call would also solve the problem. A simple proof of concept looked something like this:
```python
def write():
    [...]
    sys.stdout.write("\r{0}{1}\n".format(self._get_clear_line(), _text))

def _spin():
    [...]
    sys.stdout.write(out + self._get_clear_line())
    sys.stdout.flush()

def _get_clear_line():
    return "\033[K"
```
This resulted also in the racecondition test being green. I haven't look at the other `write()` calls though.
diff --git a/HISTORY.rst b/HISTORY.rst
index e42a4e8..f811286 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,12 @@
 Release History
 ===============
 
+0.14.3 / 2019-05-12
+-------------------
+
+* fix(#29): race condition between spinner thread and ``write()``
+
+
 0.14.2 / 2019-04-27
 -------------------
 
diff --git a/setup.cfg b/setup.cfg
index 414ae9c..710350c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 0.14.2
+current_version = 0.14.3
 
 [metadata]
 description-file = README.rst
diff --git a/yaspin/__version__.py b/yaspin/__version__.py
index 745162e..23f0070 100644
--- a/yaspin/__version__.py
+++ b/yaspin/__version__.py
@@ -1,1 +1,1 @@
-__version__ = "0.14.2"
+__version__ = "0.14.3"
diff --git a/yaspin/core.py b/yaspin/core.py
index f61bdc0..803daf7 100644
--- a/yaspin/core.py
+++ b/yaspin/core.py
@@ -76,6 +76,7 @@ class Yaspin(object):
         self._hide_spin = None
         self._spin_thread = None
         self._last_frame = None
+        self._stdout_lock = threading.Lock()
 
         # Signals
 
@@ -247,43 +248,47 @@ class Yaspin(object):
         thr_is_alive = self._spin_thread and self._spin_thread.is_alive()
 
         if thr_is_alive and not self._hide_spin.is_set():
-            # set the hidden spinner flag
-            self._hide_spin.set()
+            with self._stdout_lock:
+                # set the hidden spinner flag
+                self._hide_spin.set()
 
-            # clear the current line
-            sys.stdout.write("\r")
-            self._clear_line()
+                # clear the current line
+                sys.stdout.write("\r")
+                self._clear_line()
 
-            # flush the stdout buffer so the current line can be rewritten to
-            sys.stdout.flush()
+                # flush the stdout buffer so the current line
+                # can be rewritten to
+                sys.stdout.flush()
 
     def show(self):
         """Show the hidden spinner."""
         thr_is_alive = self._spin_thread and self._spin_thread.is_alive()
 
         if thr_is_alive and self._hide_spin.is_set():
-            # clear the hidden spinner flag
-            self._hide_spin.clear()
+            with self._stdout_lock:
+                # clear the hidden spinner flag
+                self._hide_spin.clear()
 
-            # clear the current line so the spinner is not appended to it
-            sys.stdout.write("\r")
-            self._clear_line()
+                # clear the current line so the spinner is not appended to it
+                sys.stdout.write("\r")
+                self._clear_line()
 
     def write(self, text):
         """Write text in the terminal without breaking the spinner."""
         # similar to tqdm.write()
         # https://pypi.python.org/pypi/tqdm#writing-messages
-        sys.stdout.write("\r")
-        self._clear_line()
+        with self._stdout_lock:
+            sys.stdout.write("\r")
+            self._clear_line()
 
-        _text = to_unicode(text)
-        if PY2:
-            _text = _text.encode(ENCODING)
+            _text = to_unicode(text)
+            if PY2:
+                _text = _text.encode(ENCODING)
 
-        # Ensure output is bytes for Py2 and Unicode for Py3
-        assert isinstance(_text, builtin_str)
+            # Ensure output is bytes for Py2 and Unicode for Py3
+            assert isinstance(_text, builtin_str)
 
-        sys.stdout.write("{0}\n".format(_text))
+            sys.stdout.write("{0}\n".format(_text))
 
     def ok(self, text="OK"):
         """Set Ok (success) finalizer to a spinner."""
@@ -306,7 +311,8 @@ class Yaspin(object):
         # Should be stopped here, otherwise prints after
         # self._freeze call will mess up the spinner
         self.stop()
-        sys.stdout.write(self._last_frame)
+        with self._stdout_lock:
+            sys.stdout.write(self._last_frame)
 
     def _spin(self):
         while not self._stop_spin.is_set():
@@ -321,9 +327,10 @@ class Yaspin(object):
             out = self._compose_out(spin_phase)
 
             # Write
-            sys.stdout.write(out)
-            self._clear_line()
-            sys.stdout.flush()
+            with self._stdout_lock:
+                sys.stdout.write(out)
+                self._clear_line()
+                sys.stdout.flush()
 
             # Wait
             time.sleep(self._interval)

Race condition between spinner thread and write()
When I use `write()` a lot on a spinner it often happens to me that the written text is displayed after the spinner message, like this:

```
[...]
noot noot
⠋ spinning...noot noot
noot noot
[...]
```
I used the script below to recreate the problem. It takes some time (400-800 writes) with it, but happens to me far more often with real world applications.
```python
import random
import time

import yaspin

with yaspin.yaspin() as sp:
    sp.text = 'spinning...'
    while True:
        sp.write('noot noot')
        time.sleep(0.051 + random.randint(0, 10) / 100)
```
I think this happens because of concurrent access to `sys.stdout.write()` by the spinning thread and the spinners `write()`. This should be solvable by using a `threading.Lock()` and guarding access to sys.stdout.write() with it. In a quick local hack-fix-test it worked for me by doing this in `write()` and `_spin()`, but there are a lot more functions that would need guarding, if done right.

diff --git a/tests/test_in_out.py b/tests/test_in_out.py
index 180b642..0fe6e49 100644
--- a/tests/test_in_out.py
+++ b/tests/test_in_out.py
@@ -8,7 +8,9 @@ Checks that all input data is converted to unicode.
 And all output data is converted to builtin str type.
 """
 
+import re
 import sys
+import time
 
 import pytest
 
@@ -159,3 +161,22 @@ def test_hide_show(capsys, text, request):
 
     # ensure that text was cleared before resuming the spinner
     assert out[:4] == "\r\033[K"
+
+
+def test_spinner_write_race_condition(capsys):
+    # test that spinner text does not overwrite write() contents
+    # this generally happens when the spinner thread writes
+    # between write()'s \r and the text it actually wants to write
+
+    sp = yaspin(text="aaaa")
+    sp.start()
+    sp._interval = 0.0
+    start_time = time.time()
+    while time.time() - start_time < 3.0:
+        sp.write("bbbb")
+    sp.stop()
+
+    out, _ = capsys.readouterr()
+    assert "aaaa" in out  # spinner text is present
+    assert "bbbb" in out  # write() text is present
+    assert not re.search(r"aaaa[^\rb]*bbbb", out)

pip install -e .[dev]
parse_log_pytest
Pipfile
pytest pytest-xdist pytest-cov pytest-sugar
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
execnet==1.9.0
importlib-metadata==4.8.3
iniconfig==1.1.1
packaging==21.3
pipfile==0.0.2
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytest-sugar==0.9.6
pytest-xdist==3.0.2
termcolor==1.1.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions==4.1.1
-e git+https://github.com/pavdmyt/yaspin.git@dd2fd2187fbdef81aede3ea6d2053c1ccd2d8034#egg=yaspin
zipp==3.6.0

name: yaspin
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - pipfile=0.0.2=py_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - execnet==1.9.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytest-sugar==0.9.6
      - pytest-xdist==3.0.2
      - termcolor==1.1.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/yaspin

tests/test_in_out.py::test_spinner_write_race_condition
tests/test_in_out.py::test_input_converted_to_unicode['empty'-'empty tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'empty tests/test_in_out.py::test_input_converted_to_unicode['ascii tests/test_in_out.py::test_out_converted_to_builtin_str['ascii tests/test_in_out.py::test_input_converted_to_unicode['empty'-'ascii tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'ascii tests/test_in_out.py::test_input_converted_to_unicode['non-ascii tests/test_in_out.py::test_out_converted_to_builtin_str['non-ascii tests/test_in_out.py::test_repr['non-ascii tests/test_in_out.py::test_input_converted_to_unicode['empty'-'non-ascii tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'non-ascii tests/test_in_out.py::test_repr['ascii tests/test_in_out.py::test_repr['empty'-'non-ascii tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[]'-reversal-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[]'-reversal-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[]'-reversal-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[]'-reversal-left] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[]'-default-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[]'-default-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[]'-default-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[]'-default-left] tests/test_in_out.py::test_repr['empty'-'List[]'] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[bytes]'-reversal-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[bytes]'-reversal-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[bytes]'-reversal-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[bytes]'-reversal-left] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[bytes]'-default-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[bytes]'-default-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[bytes]'-default-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[bytes]'-default-left] tests/test_in_out.py::test_repr['empty'-'List[bytes]'] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[unicode]'-reversal-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[unicode]'-reversal-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[unicode]'-reversal-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[unicode]'-reversal-left] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[unicode]'-default-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[unicode]'-default-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[unicode]'-default-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[unicode]'-default-left] tests/test_in_out.py::test_repr['empty'-'List[unicode]'] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'List[str] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'List[str] tests/test_in_out.py::test_repr['empty'-'List[str] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[]'-reversal-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[]'-reversal-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[]'-reversal-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[]'-reversal-left] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[]'-default-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[]'-default-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[]'-default-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[]'-default-left] tests/test_in_out.py::test_repr['empty'-'Tuple[]'] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[bytes]'-reversal-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[bytes]'-reversal-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[bytes]'-reversal-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[bytes]'-reversal-left] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[bytes]'-default-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[bytes]'-default-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[bytes]'-default-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[bytes]'-default-left] tests/test_in_out.py::test_repr['empty'-'Tuple[bytes]'] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[unicode]'-reversal-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[unicode]'-reversal-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[unicode]'-reversal-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[unicode]'-reversal-left] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[unicode]'-default-right] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[unicode]'-default-right] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[unicode]'-default-left] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[unicode]'-default-left] tests/test_in_out.py::test_repr['empty'-'Tuple[unicode]'] tests/test_in_out.py::test_input_converted_to_unicode['empty'-'Tuple[str] tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'Tuple[str] tests/test_in_out.py::test_repr['empty'-'Tuple[str] tests/test_in_out.py::test_write['non-ascii tests/test_in_out.py::test_hide_show['non-ascii tests/test_in_out.py::test_repr['empty'-'ascii tests/test_in_out.py::test_write['ascii tests/test_in_out.py::test_hide_show['ascii tests/test_in_out.py::test_repr['empty'-'empty tests/test_in_out.py::test_write['empty'] tests/test_in_out.py::test_hide_show['empty'] tests/test_in_out.py::test_compose_out_with_color[red-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[red-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_green-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[green-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[blue-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_white-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[white-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[white-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[white-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[white-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_green-bold] tests/test_in_out.py::test_compose_out_with_color[white-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[white-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[white-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_white-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[green-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_white-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_white-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_white-underline] tests/test_in_out.py::test_compose_out_with_color[red-on_white-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_white-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-bold, tests/test_in_out.py::test_compose_out_with_color[blue-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[blue-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[blue-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_blue-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[green-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_green-bold, tests/test_in_out.py::test_compose_out_with_color[red-on_red-bold, tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_green-bold] tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[cyan-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-underline] tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_cyan-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_green-bold] tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[magenta-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-underline] tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_magenta-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_blue-concealed] tests/test_in_out.py::test_compose_out_with_color[yellow-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[green-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_green-concealed] tests/test_in_out.py::test_compose_out_with_color[red-on_red-concealed] tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[blue-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_green-bold] tests/test_in_out.py::test_compose_out_with_color[blue-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[blue-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[blue-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_blue-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_blue-underline] tests/test_in_out.py::test_compose_out_with_color[red-on_blue-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_blue-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-reverse] tests/test_in_out.py::test_compose_out_with_color[green-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[green-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_green-reverse] tests/test_in_out.py::test_compose_out_with_color[red-on_red-reverse] tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_green-bold] tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[yellow-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-underline] tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_yellow-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_green-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_red-blink] tests/test_in_out.py::test_compose_out_with_color[green-on_red-underline] tests/test_in_out.py::test_compose_out_with_color[green-on_red-dark] tests/test_in_out.py::test_compose_out_with_color[green-on_red-bold] tests/test_in_out.py::test_compose_out_with_color[red-on_green-dark] tests/test_in_out.py::test_compose_out_with_color[red-on_green-bold]
HISTORY.rst yaspin/core.py setup.cfg yaspin/__version__.py
HISTORY.rst yaspin/core.py setup.cfg yaspin/__version__.py