Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Dec 8, 2023
1 parent 1497092 commit 9ce68e3
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions src/core/components/image/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export class Image {
debug_("termSize: %s", vim.inspect(termSize));
}
debug_("render image at (%s, %s)", x, y);
this._transmit();
vim.wait(10, () => {
return false;
});
KittyBackend.getInstance().writeGraphics({
action: "p",
quiet: 2,
Expand All @@ -133,25 +137,6 @@ export class Image {
cursorMovementPolicy: 1,
},
});
// KittyBackend.getInstance().writeGraphics(
// {
// action: "T",
// quiet: 2,
// transmission: {
// imageId: this.id,
// format: toFormatCode(this.format),
// placementId: this.id,
// },
// display: {
// xOffset: ifNil(x, 0),
// yOffset: ifNil(x, 0),
// z: ifNil(z, 0),
// cursorMovementPolicy: 1,
// },
// },
// this.data
// );
// termSyncEnd();
this.rendered = true;
}

Expand Down

0 comments on commit 9ce68e3

Please sign in to comment.