Small details
This commit is contained in:
@@ -230,6 +230,7 @@ export class KittyApcHandler {
|
|||||||
const payload = cmd.payload ?? '';
|
const payload = cmd.payload ?? '';
|
||||||
const pendingKey = cmd.id ?? 0;
|
const pendingKey = cmd.id ?? 0;
|
||||||
|
|
||||||
|
// larger image would require chunking.
|
||||||
const isMoreComing = cmd.more === 1;
|
const isMoreComing = cmd.more === 1;
|
||||||
const pending = this._pendingTransmissions.get(pendingKey);
|
const pending = this._pendingTransmissions.get(pendingKey);
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export class KittyGraphicsAddon implements ITerminalAddon, IKittyGraphicsApi {
|
|||||||
// Register APC handler for 'G' (0x47) - Kitty graphics protocol
|
// Register APC handler for 'G' (0x47) - Kitty graphics protocol
|
||||||
// APC sequence format: ESC _ G <data> ESC \
|
// APC sequence format: ESC _ G <data> ESC \
|
||||||
this._apcHandler = terminal.parser.registerApcHandler(0x47, (data: string) => {
|
this._apcHandler = terminal.parser.registerApcHandler(0x47, (data: string) => {
|
||||||
return this._kittyApcHandler!.handle(data);
|
return this._kittyApcHandler?.handle(data) ?? true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user