refactor: Groundwork for the refactor program (#2062): the main loop's background pass runs as a list of named steps, each saying whether it changed anything on screen, in the same order as before. Nothing changes in use.
refactor: Groundwork for the refactor program (#2062): the main loop's background pass, which collects what croft's background work has finished before each frame, is a function of its own that the tests run the way the loop does. Nothing changes in use.
refactor: Groundwork for the refactor program (#2062): croft no longer copies the whole screen after every redraw on terminals other than Kitty's; the small sidebar pictures read the frame just drawn instead. Nothing changes in use.
refactor: Groundwork for the refactor program (#2062): every inline picture croft draws, from the editor's previews to the PROBLEMS badge, goes out through one writer that sends the same bytes as before. Nothing changes in use.
refactor: Groundwork for the refactor program (#2062): whether croft runs inside tmux is read once, and the pictures built on the UI thread are wrapped for it in one place. Nothing changes in use.
fix: The Source Control icon's count is the same with and without pictures and matches VS Code's: every change row in every workspace folder's repository. A partly staged file counts twice (Staged Changes and Changes), and terminals without pictures no longer hide changes in other workspace folders. The REPOSITORIES overview counts the same way.