mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
icat: When using --place ensure screen doesnt scroll by leaving cursor at top-left corner of image.
This commit is contained in:
@@ -48,7 +48,8 @@ into the specified rectangle. The syntax for specifying rectangles is
|
|||||||
All measurements are in cells (i.e. cursor positions) with the origin
|
All measurements are in cells (i.e. cursor positions) with the origin
|
||||||
:italic:`(0, 0)` at the top-left corner of the screen. Note that the :option:`--align`
|
:italic:`(0, 0)` at the top-left corner of the screen. Note that the :option:`--align`
|
||||||
option will horizontally align the image within this rectangle. By default, the image
|
option will horizontally align the image within this rectangle. By default, the image
|
||||||
is horizontally centered within the rectangle.
|
is horizontally centered within the rectangle. Using place will cause the cursor to
|
||||||
|
be positioned at the top left corner of the image, instead of on the line after the image.
|
||||||
|
|
||||||
|
|
||||||
--scale-up
|
--scale-up
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ func gc_for_image(imgd *image_data, frame_num int, frame *image_frame) *graphics
|
|||||||
if z_index != 0 {
|
if z_index != 0 {
|
||||||
gc.SetZIndex(z_index)
|
gc.SetZIndex(z_index)
|
||||||
}
|
}
|
||||||
|
if place != nil {
|
||||||
|
gc.SetCursorMovement(graphics.GRT_cursor_static)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
gc.SetAction(graphics.GRT_action_frame)
|
gc.SetAction(graphics.GRT_action_frame)
|
||||||
gc.SetGap(int32(frame.delay_ms))
|
gc.SetGap(int32(frame.delay_ms))
|
||||||
|
|||||||
Reference in New Issue
Block a user