Page MenuHomePhabricator

Background flashes on first use of temporary background
Open, Incoming QueuePublic


I use different background images (set temporarily via a little script which uses the \033}bt...\000 escape sequence) when I sudo to another user or ssh to another host, which helps me to knows where each terminal is.

However, the first time a given media file (say, "foo") is set, the background noticably "flashes", that is, the existing bg goes away (leaving the solid bg color), and then the new bg file appears. If the bg is temporarily set to something else (say, "bar"), and then again set back to "foo", there is no flash - presumably because the image file has already been loaded and can immediately be displayed.

It would be better if this "flash" could be eliminated, for example, by waiting for the media to finish loading, before actually changing the background.