Skip to content

Commit

Permalink
Force 24bit color instead of xterm-direct for #138
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Jan 20, 2020
1 parent 756ac7c commit 2bc7dbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/accessories.py
Expand Up @@ -42,7 +42,7 @@
many_lines_params = [80, ]
many_columns_params = [25, ]

all_terms_params = 'xterm xterm-direct screen ansi vt220 rxvt cons25 linux'.split()
all_terms_params = 'xterm screen ansi vt220 rxvt cons25 linux'.split()

if os.environ.get('TEST_FULL'):
try:
Expand Down
5 changes: 5 additions & 0 deletions tests/test_length_sequence.py
Expand Up @@ -60,6 +60,11 @@ def test_sequence_length(all_terms):
@as_subprocess
def child(kind):
term = TestTerminal(kind=kind, force_styling=True)

# Make sure to test with 24-bit color on at least one terminal
if kind == 'xterm':
term.number_of_colors = 1 << 24

# Create a list of ascii characters, to be separated
# by word, to be zipped up with a cycling list of
# terminal sequences. Then, compare the length of
Expand Down

0 comments on commit 2bc7dbe

Please sign in to comment.