mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +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_and_display => transmitAndDisplay(alloc, terminal, cmd),
|
||||
.display => display(alloc, terminal, cmd),
|
||||
.delete => delete(alloc, terminal, cmd),
|
||||
|
||||
.delete,
|
||||
.transmit_animation_frame,
|
||||
.control_animation,
|
||||
.compose_animation,
|
||||
@ -225,6 +225,17 @@ fn transmitAndDisplay(
|
||||
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(
|
||||
alloc: Allocator,
|
||||
terminal: *Terminal,
|
||||
|
Reference in New Issue
Block a user