ATT-43 Every tmux window's ambience effect is the background; at-terminal's own meadow goes #51
Loading…
Reference in a new issue
No description provided.
Delete branch "att-43-ambience"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/ATT-43
Every tmux window gets one of ambience's effects as at-terminal's background, and at-terminal's own meadow is removed (the meadow is now one of ambience's effects).
Removed
frontends/rioterm/src/meadow/(the scene and its painting thread) and--background meadow.Added and changed
frontends/rioterm/src/ambience/: the window's ambience background.painter.rs:ambience-paintfromC:\Program Files\at-home\ambience\current\(from%ProgramFiles%), started directly withCREATE_NO_WINDOW, stderr to null.listruns once on a thread as the window opens. One long-lived child holds every effect; commands are written from a thread of their own and frames ("AMBF" header, then RGBA) read on another into the one-frame slot, never on the event loop. A painter that is missing, fails to start, dies or writes something that isn't a frame is logged once inat-terminal.logand not started again: the window keeps its plain background.mod.rs: what the painter is told, only what changed:sizeon resize,show <effect>on abackgroundmessage and when the window is watched again,holdwhen unfocused or covered, when the effect is empty, and when the background isconfigured. Ashowwhile held is followed byhold, so a new effect stands on its first frame.--background ambience|configured|toggle;ambienceis the default, and a savedmeadowreads asambience(state.rs,cli.rs).cad0ee9b(PR 4,backgroundandeffects); the Rust binding gains both kinds with round-trip tests. A hello is answered as before, then the window sendseffectsas input to the route (an empty list with no painter; a hello that comes beforelistanswers is owed the list, sent when it answers).backgroundreaches the window as an event.meadowline isbackgroundnow; README's Backgrounds section and at-protocol list.Left alone
--background toggle, which works unchanged; its name is that repo's.Tests
listparser.backgroundandeffectsround-trip (empty and longest names, an empty list); bad names don't encode; crosswords sends the hello's answer then the window's cue, and abackgroundmessage reaches the window.meadowis ambience, an unknown value is ambience.