mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
switch from triggerDataEvnet to this._terminal.input
This commit is contained in:
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}`);
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user