sixel image should be sharp and becomes blurred
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.5.0beta5
- OS version: MacOS Catalina 10.15.7
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Attach a screen capture video if it would make the reproduction steps clearer. sixel-blur-demo
Detailed steps to reproduce the problem:
- Render an image to the terminal. I'm using
img2sixel < a-line-graph.png
, which has nice sharp lines. - It starts blurred. Weird.
- Switch desktop, switch back.
- On switch back, the image is sharp. Then ~0.3s later, it blurs. I attach a screen capture.
- This seems in some way associated with focus. If the terminal does not have the focus, the graph remains sharp until I select iTerm. At the point the panes redraw, and the blurring occurs then. The surrounding text remains sharp before and after.
- The easiest way to see this in a controlled way seems to be to keep the focus away from iterm during the desktop switch. So while writing this issue, I've got a firefox in the left half of the screen and an iterm in the right. Focus on firefox. Switch desktops (ctrl-2) and back (ctrl-3). It may help to switch to a desktop without iterm in it - the objective is to still have focus on firefox when you switch back. On switch back the graph is sharp. Click on the iterm to focus iTerm and the graph blurs.
What happened: Graphs drawn in a focussed iterm app (doesn't matter which pane/window) are blurred.
What should have happened: The SIXEL data are for a sharp graph, and iTerm renders it sharp when it does not have the focus. It should stay sharp when it gets the focus.