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)

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)

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.

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['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['ascii tests/test_in_out.py::test_out_converted_to_builtin_str['ascii tests/test_in_out.py::test_repr['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_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'-'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'-'non-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'-'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-underline] 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-blink] tests/test_in_out.py::test_compose_out_with_color[red-on_green-blink] 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_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-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[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[yellow-on_yellow-reverse] 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-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[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[blue-on_blue-concealed] 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-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[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[magenta-on_magenta-bold, 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_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[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_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-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_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_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-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_yellow-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-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_green-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-blink] 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-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-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[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[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-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[yellow-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-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[green-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-blink] 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[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_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_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-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_yellow-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-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_green-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-blink] 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[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-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[yellow-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-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[green-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-blink] 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[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[magenta-on_blue-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-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_yellow-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-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_green-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-blink] 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-concealed] 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-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[yellow-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-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[green-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-blink] 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[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_yellow-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-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_green-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-blink] 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-reverse] 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-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[green-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-blink] 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-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[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_green-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-blink] 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-blink] 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-blink] 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-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[green-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-underline] 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]