Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 1d6e438

Browse files
committed
修改 终端字号
1 parent 916b8f7 commit 1d6e438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/service/term.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ export const TERM_TEXT_CYAN = "\x1B[36m";
3737
export const TERM_TEXT_WHITE = "\x1B[37m";
3838
export const TERM_TEXT_B = "\x1B[1m";
3939

40-
export function initTerminalWindow(elem) {
40+
export function initTerminalWindow(elem, fontSize = 13) {
4141
const term = new Terminal({
4242
rendererType: "canvas",
4343
convertEol: true,
4444
disableStdin: false,
4545
cursorStyle: "underline",
4646
cursorBlink: true,
47-
fontSize: 13,
47+
fontSize: fontSize,
4848
theme: {
4949
background: "#1e1e1e"
5050
}

0 commit comments

Comments
 (0)