Show a session's layout: tabs, splits, floating layers, and focus

The app now shows a whole session instead of one block. - internal/rexsession: follows a session. It fetches session.view when a session_view_changed event announces a newer revision (several changes can share one fetch), and keeps a pane for each block the active window shows: the zoomed block alone, or every block in each layer that isn't minimized. Focusing a block or switching windows takes effect locally at once and is sent to the server in order. - internal/ui: draws a tab per window and the active window's layers back to front, with each block at its rect (fractions of the window, for floating layers too). Neighbouring panes share a 1px separator, and floating layers get a frame. Clicking a pane focuses it, and clicking a tab switches to it. Unfocused panes are dimmed and draw an outline cursor. Keys go to the focused block. - internal/termview: View only draws now. Keyboard input moved to Keys, which serves the whole window. - rextest: shared helpers for dialing, creating sessions and blocks, and a raw cat -vt command that shows the bytes a block receives. Tests drive a second client that splits, opens windows, zooms, closes blocks and destroys the session, and check this client follows. Clicks go through Gio's input router.


Author Daniel Patterson Date Commit Parent a42ecc98 Change ID
+1131 -130
11 changed files
+1131 -130
11 changed files