mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-21 08:01:39 +01:00
The test window of the e2e suite is a Win32 program whose command line (--title, --class, --color, --size, --min-size, --fixed, --rename-to, --after) and standard input commands (title, color, resize, report, close, exit) are the contract every scenario port relies on. Move what knows no window system into cli.rs, with tests that run anywhere, and the Win32 window into win32.rs, so that another platform can implement the same window against the same contract. The Windows window itself is moved, not changed: it reads its options and its commands from cli.rs now, and the colour is converted to a GDI one where it is used. A fullscreen command is added to the shared set; on Windows it does what the WM_APP + 2 message does.