mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
terminal/kitty-gfx: hook up delete
This commit is contained in:
@ -39,8 +39,8 @@ pub fn execute(
|
|||||||
.transmit => transmit(alloc, terminal, cmd),
|
.transmit => transmit(alloc, terminal, cmd),
|
||||||
.transmit_and_display => transmitAndDisplay(alloc, terminal, cmd),
|
.transmit_and_display => transmitAndDisplay(alloc, terminal, cmd),
|
||||||
.display => display(alloc, terminal, cmd),
|
.display => display(alloc, terminal, cmd),
|
||||||
|
.delete => delete(alloc, terminal, cmd),
|
||||||
|
|
||||||
.delete,
|
|
||||||
.transmit_animation_frame,
|
.transmit_animation_frame,
|
||||||
.control_animation,
|
.control_animation,
|
||||||
.compose_animation,
|
.compose_animation,
|
||||||
@ -225,6 +225,17 @@ fn transmitAndDisplay(
|
|||||||
return display(alloc, terminal, cmd);
|
return display(alloc, terminal, cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Display a previously transmitted image.
|
||||||
|
fn delete(
|
||||||
|
alloc: Allocator,
|
||||||
|
terminal: *Terminal,
|
||||||
|
cmd: *Command,
|
||||||
|
) Response {
|
||||||
|
const storage = &terminal.screen.kitty_images;
|
||||||
|
storage.delete(alloc, terminal, cmd.control.delete);
|
||||||
|
return .{};
|
||||||
|
}
|
||||||
|
|
||||||
fn loadAndAddImage(
|
fn loadAndAddImage(
|
||||||
alloc: Allocator,
|
alloc: Allocator,
|
||||||
terminal: *Terminal,
|
terminal: *Terminal,
|
||||||
|
Reference in New Issue
Block a user