switch from triggerDataEvnet to this._terminal.input

This commit is contained in:
Anthony Kim
2026-01-27 18:59:48 -08:00
parent ae171acb79
commit 17d439515f
3 changed files with 3 additions and 21 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 938 KiB

@@ -509,7 +509,7 @@ export class KittyGraphicsAddon implements ITerminalAddon, IKittyGraphicsApi {
}
const response = `\x1b_Gi=${id};${message}\x1b\\`;
this._terminal._core.coreService.triggerDataEvent(response);
this._terminal.input(response, false);
if (this._debug) {
console.log(`[KittyGraphicsAddon] Sent response: i=${id};${message}`);
+2 -20
View File
@@ -6,24 +6,6 @@
import type { Terminal } from '@xterm/xterm';
/**
* Core service interface for triggering data events.
* This is used to send responses back to the terminal client.
Question: Can I delete this since we switched from triggerDataEvent to this._terminal.input
*/
export interface ICoreService {
triggerDataEvent(data: string, wasUserInput?: boolean): void;
}
/**
* Core terminal interface exposing internal services.
*/
export interface ICoreTerminal {
coreService: ICoreService;
}
/**
* Extended terminal interface that exposes the internal _core property.
* This is needed to send responses back to the client.
*/
export interface ITerminalExt extends Terminal {
_core: ICoreTerminal;
}
export interface ITerminalExt extends Terminal {}