diff --git a/web/process.html b/web/process.html
index 7619eac..266c736 100644
--- a/web/process.html
+++ b/web/process.html
@@ -175,7 +175,9 @@
terminal = new Terminal({
cursorBlink: true,
fontSize: 14,
- fontFamily: 'Consolas, Monaco, monospace',
+ fontFamily: '"Source Code Pro", "Courier New", monospace',
+ letterSpacing: 0, // 禁用自动间距调整
+ lineHeight: 1.2, // 调整行高
theme: {
background: '#1a1a2e',
foreground: '#eee',
@@ -200,7 +202,8 @@
brightWhite: '#fff'
},
rows: 30,
- cols: 100
+ cols: 100,
+ allowProposedApi: true
});
fitAddon = new FitAddon.FitAddon();
@@ -274,10 +277,9 @@
if (!terminal) {
initTerminal();
}
-
switch (data.type) {
case 'output':
- // 进程输出
+ // 进程输出 - 直接写入,游戏进程负责清屏
terminal.write(data.text);
break;