Skip to content

Commit 02383d9

Browse files
committed
safariでターミナルに色が付かなかったのを修正
1 parent 6f3f8ca commit 02383d9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

app/terminal/highlight.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import chalk from "chalk";
2+
chalk.level = 3;
23
import { RuntimeLang } from "./runtime";
34

45
export async function importPrism() {

app/terminal/repl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useCallback, useEffect, useRef, useState } from "react";
44
import { highlightCodeToAnsi, importPrism } from "./highlight";
55
import chalk from "chalk";
6+
chalk.level = 3;
67
import {
78
clearTerminal,
89
getRows,

app/terminal/terminal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { Terminal } from "@xterm/xterm";
55
import type { FitAddon } from "@xterm/addon-fit";
66
import "@xterm/xterm/css/xterm.css";
77
import chalk from "chalk";
8+
chalk.level = 3;
89
import { useChangeTheme } from "../[docs_id]/themeToggle";
910

1011
/**

0 commit comments

Comments
 (0)