From 02383d9257a9feac708ab4053b7aa4ece080b251 Mon Sep 17 00:00:00 2001 From: na-trium-144 <100704180+na-trium-144@users.noreply.github.com> Date: Mon, 24 Nov 2025 01:05:40 +0900 Subject: [PATCH] =?UTF-8?q?safari=E3=81=A7=E3=82=BF=E3=83=BC=E3=83=9F?= =?UTF-8?q?=E3=83=8A=E3=83=AB=E3=81=AB=E8=89=B2=E3=81=8C=E4=BB=98=E3=81=8B?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/terminal/highlight.ts | 1 + app/terminal/repl.tsx | 1 + app/terminal/terminal.tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/app/terminal/highlight.ts b/app/terminal/highlight.ts index 76a1dc1..a170f71 100644 --- a/app/terminal/highlight.ts +++ b/app/terminal/highlight.ts @@ -1,4 +1,5 @@ import chalk from "chalk"; +chalk.level = 3; import { RuntimeLang } from "./runtime"; export async function importPrism() { diff --git a/app/terminal/repl.tsx b/app/terminal/repl.tsx index 89bb31a..cc31d14 100644 --- a/app/terminal/repl.tsx +++ b/app/terminal/repl.tsx @@ -3,6 +3,7 @@ import { useCallback, useEffect, useRef, useState } from "react"; import { highlightCodeToAnsi, importPrism } from "./highlight"; import chalk from "chalk"; +chalk.level = 3; import { clearTerminal, getRows, diff --git a/app/terminal/terminal.tsx b/app/terminal/terminal.tsx index c5e7011..de5a8ce 100644 --- a/app/terminal/terminal.tsx +++ b/app/terminal/terminal.tsx @@ -5,6 +5,7 @@ import type { Terminal } from "@xterm/xterm"; import type { FitAddon } from "@xterm/addon-fit"; import "@xterm/xterm/css/xterm.css"; import chalk from "chalk"; +chalk.level = 3; import { useChangeTheme } from "../[docs_id]/themeToggle"; /**