generate-alt-random: fix “new style” cube escape

It’s “38:5:<idx>”, not “38:2:5:<idx>”.
This commit is contained in:
Daniel Eklöf 2020-12-20 15:27:27 +01:00
parent 1d7595d1db
commit 21cb4671a4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -116,7 +116,7 @@ def main():
out.write(f'\033[{base};5;{idx}m')
else:
# New-style (sub-parameter based)
out.write(f'\033[{base}:2:5:{idx}m')
out.write(f'\033[{base}:5:{idx}m')
elif color_variant == ColorVariant.RGB:
do_bg = random.randrange(2)