mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-09-21 16:01:29 +00:00
Merge pull request #689 from Sari-me/fix_imageaddon_clean
fix(terminal): 修复 ImageAddon 初始化失败并恢复 Sixel 图片渲染
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
"enable": true,
|
||||
"scope": []
|
||||
},
|
||||
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: asset: http://asset.localhost https://asset.localhost; font-src 'self' data:; connect-src ipc: http://ipc.localhost"
|
||||
"csp": "default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: asset: http://asset.localhost https://asset.localhost; font-src 'self' data:; connect-src ipc: http://ipc.localhost"
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { Terminal } from "@xterm/xterm";
|
||||
import { logger } from "@/lib/logger";
|
||||
|
||||
export const TERMINAL_IMAGE_ADDON_OPTIONS = {
|
||||
enableSizeReports: false,
|
||||
sixelSupport: true,
|
||||
iipSupport: true,
|
||||
kittySupport: false,
|
||||
|
||||
@@ -4,7 +4,12 @@ import type { IWindowOptions } from "@xterm/xterm";
|
||||
* Do not reflect application-controlled icon/window titles back into the PTY.
|
||||
* Keep this explicit instead of depending on xterm.js defaults.
|
||||
*/
|
||||
export const XTERM_SECURE_WINDOW_OPTIONS: IWindowOptions = Object.freeze({
|
||||
getIconTitle: false,
|
||||
getWinTitle: false,
|
||||
});
|
||||
export const XTERM_SECURE_WINDOW_OPTIONS: IWindowOptions =
|
||||
Object.freeze({
|
||||
getIconTitle: false,
|
||||
getWinTitle: false,
|
||||
|
||||
getWinSizePixels: true,
|
||||
getCellSizePixels: true,
|
||||
getWinSizeChars: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user