Commit Graph

12 Commits

Author SHA1 Message Date
9cebeae716 Introduce central theme module; rounded borders and consistent styling
All colors/styles for windows, panel, dropdown and desktop now live in
src/theme.rs — restyle the whole WM from one file. Windows and menus
use rounded borders; hover/focus states share one accent style.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 09:39:39 +02:00
6aee7ce00a Fix wide-char (emoji/CJK) column drift through the whole render chain
Wide characters shifted everything after them one column to the right:

- render.rs: vt100's empty wide-continuation cell was padded to a
  space, making wide chars occupy 2+1 columns — skip it entirely
- ipc.rs buffer_to_ansi: same bug for daemon frames — skip cells
  covered by a preceding wide symbol (unicode-width)
- app.rs: clamp virtual terminals to >= 2 columns (vt100 0.16 has a
  subtraction underflow panic on wide chars in a 1-col grid) and give
  content_area a sane 80x24 default so windows spawned before the
  first layout pass aren't degenerate
- main.rs: use try_send for display frames so one slow/stalled client
  can no longer freeze the whole WM
- integration test: new end-to-end check that emoji do not shift the
  row, plus fix a false match against the window title

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 09:33:06 +02:00
5ca8eb4647 Apply cargo clippy --fix cleanups
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 19:51:44 +02:00
f0bed7a14e Full remote input parity: forward mouse and structured key events over IPC
- New key_event/mouse_event client messages (crossterm serde) that run
  through the complete WM event handling on the server — remote clients
  get window focus, drag/resize and mouse forwarding into virtual
  terminals (SGR/UTF-8/X10) identical to standalone mode
- tui-wm -c now forwards mouse events; previously only keyboard worked
  remotely
- IPC unit tests + end-to-end integration test (tests/integration.py):
  daemon, frames, click/scroll SGR forwarding, popups, TUI-FM in a
  window — 12/12 passing
- Document the new messages in SOCKET_API.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 19:50:27 +02:00
75aa7033a4 Add Gitea Actions release workflow + combined VS Code build task
CI on push to master/main: cargo test, native arm64 build on the Pi5
runner, cross-compiled x64 build, rolling 'latest' release with both
binaries and checksums.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 19:44:35 +02:00
59b909efb8 Cross-platform IPC via interprocess + Windows support fixes
- Replace Unix-socket-only server/client with interprocess local sockets:
  unchanged unix domain socket on Linux (SOCKET_API compatible),
  named pipes on Windows
- Run command lines with arguments via sh -c / cmd /C in the PTY
- Wire RunProgram args into the spawned command
- Make libc a unix-only dependency
- Skip Kitty background image on Windows (protocol unsupported)
- Drop dead pixel-size query code in kitty_gfx
- Reject left/right panel positions at config parse instead of silently
  ignoring them

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 19:38:56 +02:00
b8d6a18a2e Upgrade TUI stack: ratatui 0.30, crossterm 0.29, portable-pty 0.9, vt100 0.16
- Capture OSC 0/2 window title in scan_osc_sequences since vt100 0.16
  no longer exposes Screen::title()
- Remove committed build artifacts (testapps/mouse-test/target) and
  extend .gitignore

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 19:31:41 +02:00
339ad9530e Implement Kitty graphics protocol for background image rendering
- Added `kitty_gfx` module to handle loading, scaling, and displaying background images using the Kitty graphics protocol.
- Integrated background image handling into the main application loop, allowing dynamic updates based on configuration.
- Enhanced terminal rendering to support transparent backgrounds when a Kitty image is active.
- Updated IPC server to manage client connections and messages, including handling background image settings.
- Modified `PtyTerminal` to accept additional environment variables during shell spawning.
- Improved rendering logic to support popup dialogs and terminal background color customization.
2026-03-29 04:28:31 +02:00
3a9e292088 Add build output dependency file for mouse-test application
Add standard menu fore keybinds
2026-03-28 03:18:41 +01:00
Björn Blomberg
4440ad79bd feat: add configuration management and panel rendering
- Introduced a new `Config` struct for loading application configuration from a TOML file.
- Added support for keybindings and panel configurations, including status widgets.
- Implemented `PtyTerminal` for handling pseudo-terminal interactions.
- Created a rendering module to manage the display of application windows, panels, and dropdowns.
- Refactored the main application loop to utilize the new configuration and rendering logic.
- Removed legacy code related to event handling and rendering from `main.rs`.
2026-03-27 17:01:06 +01:00
Björn Blomberg
d7c70baf35 Add initial implementation of TUI-WM with README, build tasks, and configuration files 2026-03-27 14:52:50 +01:00
f50ffa04de Initial commit 2026-03-27 13:09:20 +01:00