rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
gitMFQ/dsh-terminal-keybar-dock
Mobile touch key bar for the DSH Web terminal: docks Esc/Tab/Enter/Ctrl-C/Arrows along the bottom edge, and the terminal reserves the bar's band so the prompt stays visible. Rides the soft keyboard via visualViewport.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:gitMFQ/dsh-terminal-keybar-dock
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) Client plugin: the mobile twin of dsh-terminal-keybar, without the floating look.
A phone's soft keyboard has no Escape, Tab, Ctrl, Shift or arrow keys, and the DSH terminal has no on-screen replacement. The upstream plugin floats a translucent column of those keys beside the terminal; this variant docks them instead:
Keys: Ctrl · Shift · Esc · Tab · ↵ · ^C · ↑ · ↓ · ← · →
The Ctrl and Shift keys are sticky, one-shot modifiers: tap one and it
lights up, tap it again to cancel, and the two compose (Ctrl+Shift). An armed
modifier applies to the next key — a bar key or one character typed on the
soft keyboard — and then clears itself.
Shift+Tab sends ESC [ Z (back-tab), and Ctrl /
Shift + an arrow sends the standard xterm modifier sequence (ESC [ 1 ; 5 A
for Ctrl+↑, 1;2 for Shift, 1;6 for both), so Ctrl+←/→ moves by word in
readline and vim. Ctrl+Esc, Ctrl+↵ and Ctrl+^C send the same bytes
as the unmodified keys — terminals draw no further distinction.beforeinput, the insertion is cancelled, and the rewritten byte goes through
the same terminal service. Ctrl+A…Z become the C0 control bytes (Ctrl+C
interrupt, Ctrl+D EOF, Ctrl+Z suspend, Ctrl+R reverse search, Ctrl+L clear,
Ctrl+W kill word); Ctrl+[ \ ] ^ _, space and ? map to their ASCII control
codes; Shift uppercases ASCII letters. Input that is not one keystroke — an IME
composition, a paste — is left alone and the modifiers stay armed.Shift only changes the case of ASCII letters; digits and symbols keep whatever the soft keyboard's own Shift produced (layouts differ, and the plugin does not guess). Ctrl sends a character with no control meaning exactly as typed.
iOS Safari and modern Android Chrome keep the layout viewport intact and shrink
window.visualViewport instead, so a plain position: fixed; bottom: 0 bar
would sit behind the keyboard. The bar reads the keyboard inset as
innerHeight − visualViewport.offsetTop − visualViewport.height and sets its own
bottom to max(inset, env(safe-area-inset-bottom)) — on the keyboard while it
is open, above the home indicator while it is closed. The reserved band the
terminal gives up is the same expression plus the bar's height, so the terminal's
bottom edge always meets the bar's top edge. Browsers that resize the layout
viewport instead (older Android, Firefox) report no inset and need none: their
bottom: 0 is already above the keyboard.
Presses use pointerdown with preventDefault, so the terminal's textarea keeps
focus and the soft keyboard stays open. Bytes go through the public Client
terminal service of the active tab (webTerminals.view(...).write(...)); no
terminal code is copied.
Install as a local bundle from this directory (DeepSeek Harness, Plugins →
Install, or the plugin_manager tool with install_bundle). Then disable the
upstream dsh-terminal-keybar so the floating column does not appear beside
the docked bar. Reload the page after installation.
dsh-terminal-keybar (MIT); the write path, seat registration
and diagnosis badge are inherited from it, while the sticky Ctrl/Shift
modifiers and typed-character interception are new here. See MAINTENANCE.md
for every upstream API this plugin touches — including the tab-body markers the
visibility gate and the reserved band are built on, and the hidden textarea the
modifiers intercept.visualViewport formula, which
desktop browsers cannot fully exercise (no soft keyboard); the closed-keyboard
docked layout, the reserved band and key delivery are verifiable in a narrow
touch-emulated viewport, the open-keyboard ride-up needs a real phone. The
modifier interception listens for beforeinput, which a touch-emulated page
can dispatch; the real soft-keyboard timing still deserves a pass on a phone.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。