mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: terminal type
This commit is contained in:
1 parent
ba69685ea2
commit
e2b5bb3b70
1 file changed
+5
-4
@@ -8,7 +8,6 @@ class SocketTerminal {
|
|||||||
|
|
||||||
constructor(rows: number, cols: number) {
|
constructor(rows: number, cols: number) {
|
||||||
this.term = new Terminal({
|
this.term = new Terminal({
|
||||||
rendererType: 'canvas', // 渲染类型
|
|
||||||
rows, // 行数
|
rows, // 行数
|
||||||
cols, // 不指定行数,自动回车后光标从下一行开始
|
cols, // 不指定行数,自动回车后光标从下一行开始
|
||||||
convertEol: true, // 启用时,光标将设置为下一行的开头
|
convertEol: true, // 启用时,光标将设置为下一行的开头
|
||||||
@@ -16,9 +15,11 @@ class SocketTerminal {
|
|||||||
disableStdin: false, // 是否应禁用输入
|
disableStdin: false, // 是否应禁用输入
|
||||||
// cursorStyle: "underline", //光标样式
|
// cursorStyle: "underline", //光标样式
|
||||||
cursorBlink: true, // 光标闪烁
|
cursorBlink: true, // 光标闪烁
|
||||||
foreground: '#ECECEC', // 字体
|
theme: {
|
||||||
background: '#000000', // 背景色
|
foreground: '#ECECEC', // 字体
|
||||||
cursor: 'help', // 设置光标
|
background: '#000000', // 背景色
|
||||||
|
cursor: 'help', // 设置光标
|
||||||
|
},
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: 'normal',
|
fontWeight: 'normal',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user