Andreas Schwab writes: > On Apr 27 2019, Han Boetes wrote: > >> 6288 write(8, "\33[44d\33[K\33[2d\33[?25l[I\33[43;7H\33[30m"..., 80) = 80 > > "\e[I" is the xterm focus-in event, so it looks like some race condition. Indeed. This behaviour is present in master, but not emacs-26. Here's the simplest repro for me under gnome-terminal on GNU/Linux: 0. emacs -Q --daemon=test 1. emacsclient -t -s test Some environment variables follow my signature. Although the above is not reproducible 100% of the time, the following brings it down to 0% of the time for me: 0. emacs -Q --daemon=test 1. TERM=xterm-direct emacsclient -t -s test Another thing that brings the reproducibility down to 0% is the following: