kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.15k stars 972 forks source link

images are not confined to "output" space and might overlay with terminal text after resize #3029

Closed FlorianLudwig closed 3 years ago

FlorianLudwig commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. icat image
  2. resize window 3 during resize the image does not behave as expected
  3. after resize - if line breaks change - image overlaps with text / moves / ...

Expected behavior The image should be confined to the space between icat and the next prompt

Screenshots

image

After resize

image

Environment details

Linux knight1 5.8.13-200.fc32.x86_64 #1 SMP Thu Oct 1 21:49:42 UTC 2020 x86_64
\S
Kernel \r on an \m (\l)
Your Wayland compositor does not support server side window decorations, disabling Wayland. You can force Wayland support using the linux_display_server option in kitty.conf See https://drewdevault.com/2018/01/27/Sway-and-client-side-decorations.html for more information.
Running under: X11

Config options different from defaults:
kovidgoyal commented 3 years ago

No, I'm afraid not. This is not feasible. Resizing reflows text, and there is no concept of "prompt" in a terminal, that's an artifact of the shell.