From d06325ec046b7e5851fc51f290cc55c5a3363d93 Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Fri, 12 Jan 2024 17:39:00 +0800 Subject: [PATCH] fix: set terminal in storybook --- docs/storybook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/storybook.py b/docs/storybook.py index eab6c504..87c209b8 100644 --- a/docs/storybook.py +++ b/docs/storybook.py @@ -129,7 +129,8 @@ def transform_chapter(chapter): elif filename.endswith(".cast"): subprocess.check_call( f"./storybook --cast {filename} -s {command}", - shell=True + shell=True, + env={"TERM": "xterm-256color"}, ) continue