Introduction¶
When opening DSH Web on a mobile phone and switching to the terminal tab, the system soft keyboard usually lacks Esc, Tab, Ctrl, and arrow keys. vim, less, readline completion, and command history all rely on these keys; without them, the terminal is almost unusable. Desktop browsers come with a complete keyboard and generally do not require extra UI; touch devices present a different set of problems.
The following is an introduction to the community plugin dsh-terminal-keybar (Maintainer: miiy, Category: Client). On touch devices, and only when the terminal tab is active, it floats a column of semi-transparent buttons on the right side of the screen, directly writing the missing keys to the currently visible Web terminal.
What is this¶
dsh-terminal-keybar is a touch key bar for the DSH Web terminal: it is a pure browser-side bundle that does not duplicate terminal code or modify the DSH core; it writes bytes to the current terminal via the public webTerminals service. The README states that it appears only on touch devices and only when the terminal tab is active; the desktop is unaffected. When the soft keyboard pops up, it centers within the visible area to prevent iOS from pushing the key bar off the screen.
The current package version is 1.0.1, license MIT, repository: https://github.com/miiy/dsh-terminal-keybar. Directory page: https://www.skillhub.cn/plugins/miiy/dsh-terminal-keybar.
Core Features¶
Keys and Sent Content¶
| Button | Sends | Typical Usage |
|---|---|---|
Esc |
\x1b |
Exit vim insert mode, close less, etc. |
Tab |
\t |
Path and command completion |
↵ |
\r |
Execute commands |
^C |
\x03 |
Interrupt running commands |
↑ ↓ |
ESC [ A / ESC [ B |
History, menus, vim movement |
← → |
ESC [ D / ESC [ C |
Inline movement |
Interaction Design¶
- Vertical layout, semi-transparent, minimizing obstruction of the terminal content at the bottom.
- Uses
pointerdownwithpreventDefault()to keep the terminal focused and the soft keyboard open, facilitating typing and using arrow keys within the same session. - The key bar occupies approximately the rightmost 46px of the terminal;
opacity/rightcan be adjusted instyles.barwithinclient.js.
Platform Scope¶
In package.json, dsh.client.platform is set to web; this only affects the Web side, and DSH Desktop native windows are unaffected.
Installation and Activation¶
The plugin runs with the permissions of the current DSH process; it is recommended to review the repository source code and the MIT license before installing. The DSH community directory (such as SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer.
Method 1: Host installBundle (Install and Enable)¶
Ask the Agent to execute this in the conversation, or paste the same spec into the installation box in Settings → Plugins:
install the plugin `github:miiy/dsh-terminal-keybar`
Or the installation spec:
github:miiy/dsh-terminal-keybar
The above methods call the Host’s installBundle: it installs the package, writes to dsh.profile.bundles, and applies the changes hot, completing the process in one step.
Method 2: CLI (Install only, requires manual activation)¶
dsh plugin --profile <profile> add github:miiy/dsh-terminal-keybar
dsh plugin passes the arguments to pnpm within the profile directory and does not automatically compose. After installation, it will appear as installed but disabled in Settings → Plugins; toggling the switch will add it to dsh.profile.bundles. If the switch does not take effect immediately, restart dsh web.
Since it is a pure JavaScript bundle with no build script, git installation generally does not require allowBuilds approval. Accepted spec forms include common github:user/repo, git+https://…, absolute local paths, or npm package names.
Method 3: Local checkout (Development)¶
plugin_manager install_bundle /absolute/path/to/dsh-terminal-keybar
Typical Usage¶
- Open DSH Web on your phone.
- Open a terminal tab in the right sidebar.
- A column of keys appears on the right edge of the screen; click to input. It is also usable when the soft keyboard is collapsed.
Applicable Scenarios and Known Limitations¶
Suitable for: Users who frequently use the DSH Web terminal in mobile or tablet browsers and need keys missing from the soft keyboard, such as Esc / Tab / Ctrl-C / arrow keys.
Notes:
- DECCKM (application cursor keys): The plugin cannot access the xterm instance, so arrow keys are fixed to send CSI forms (
ESC [ A, etc.). bash/readline, vim, and less are usually usable; programs strictly requiring SS3 (ESC O A) may not be compatible. - Floating panels: Visibility is determined by the active tab of the active pane; the key bar will not appear when the terminal is floated to a floating panel.
- If the key bar does not appear, you can turn on the
DEBUGswitch at the top ofclient.jsto view screen diagnostic badges; seeMAINTENANCE.mdin the repository for maintenance instructions.
Conclusion¶
dsh-terminal-keybar uses a column of semi-transparent touch keys to fill the gap left by mobile soft keyboards in Web terminals. The installation spec is github:miiy/dsh-terminal-keybar. For more information, see the directory page https://www.skillhub.cn/plugins/miiy/dsh-terminal-keybar and GitHub https://github.com/miiy/dsh-terminal-keybar.