Commit Graph
2 Commits
Author SHA1 Message Date
STRIX 6aed2f3634 T11: terminal canvas, keyboard toolbar, settings
TerminalSession:
- shell integration: ensureShell() opens PTY+shell with emulator created
  first (renderable during handshake); channel onClose -> CLOSED
- I/O API: sendBytes/sendText/sendKey (DECCKM-aware)/sendPaste
  (bracketed-paste aware); resizeTerminal -> emulator.resize + pty
  window-change; OSC 0/2 title wins over label; inputVersion counter
  lets the canvas snap back to live view on any user input

TerminalCanvas:
- full-area Canvas renderer; cell size from measureText('M')
- merged style runs (one fillText per run), wide-cell 2-cell spans
- dirty-row incremental redraw live, full redraw while scrolled back
- block/underline cursor, always visible on alternate screen
- xterm-256 palette + truecolor + reverse/dim/bold/italic/underline/strike
- pinch zoom 6-30vp with persisted setting; PTY resize on relayout
- touch: SGR mouse reports in mouse mode, else scrollback drag + tap
  focuses the hidden 1px IME anchor TextInput

KeyboardToolbar (Haven default two-row layout):
- Row1: snippets/keyboard/Esc/Tab/Paste/Text///Home/Up/End/PgUp
- Row2: Shift/Ctrl/Alt/arrows/PgDn/|/~/\backslash/`
- sticky modifiers: one-shot tap, double-tap lock (bordered), consume
  on dispatch; Ctrl+symbol via ch & 0x1f; Alt prefixes ESC

TerminalPage:
- READY body mounts canvas + toolbar + whole-line text input overlay
  (CJK path) + snippet macro panel (^C ^D ^Z ^L ^A ^E ^W ^U Shift-Tab)
- soft-keyboard toggle via FocusController on the hidden IME anchor

SettingsPage:
- color scheme picker with live preview blocks (4 schemes)
- font size slider 6-30vp, keep-screen-on toggle (window API)
- about (AGPL-3.0 + upstream attribution), diagnostics entry
2026-09-08 18:48:25 +08:00
STRIX 12c73d7a87 T9: main UI shell + connection management
- session/TerminalSession: kit-free connect orchestrator (CONNECTING ->
  HOSTKEY_WAIT -> AUTHENTICATING/AUTH_REQUIRED -> READY/CLOSED/ERROR),
  fresh SshSession per attempt, inline password retry with optional
  remember+persist, friendly error mapping
- session/SessionManager: process-wide session registry with listener
  notify and active-session tracking
- ui/SessionLaunch: SessionDeps assembly (repos + TOFU dialog + crypto
  envelopes), host-key AlertDialog (save/once/reject), toast/clipboard,
  quick-connect and host-profile spec builders
- pages/Index: bottom Tabs shell (connections/terminal/keys/settings)
  with AppStorage-driven cross-page tab switching
- ui/ConnectionsPage: quick-connect bar, search, LazyForEach host list,
  long-press context menu (edit/copy/forget-password/delete), FAB +
  bindContentCover editor, delete/forget confirm dialogs
- ui/HostEditSheet: full-screen host editor (label/host/port/user,
  password/key auth chips, key Select, 8-color tag picker)
- ui/TerminalPage: session tab strip + per-state overlays (progress,
  inline password prompt, error/closed with reconnect)
- ui/KeysPage/SettingsPage: stage placeholders (diag entry kept)
- ssh/SshSession: optional onClosed callback for transport loss
- data/KnownHostRepository: fix missing KnownHostStore import (T8
  post-build regression)
2026-09-08 18:06:40 +08:00