WebShell

Resumable Transfers with ssh2-sftp-client

I’ve used ssh2-sftp-client to implement terminal-side upload/download. Because it supports streams, I implemented …

· 1 min
WebShell

Browser Fingerprinting

What browser fingerprints are, FingerprintJS v3 vs. v4 licensing, expected accuracy, and basic usage.

· 1 min
JavaScriptWebShell

Get the Current Directory of Any Selected File in WebShell

While implementing “click to download selected filename” in a WebShell based on xterm.js, I ran into a challenge: how …

· 1 min
WebShell

Feasibility of Specifying a Startup File When Opening an SSH2 Session

This post explores whether an SSH2-based web terminal can specify a startup file when opening an interactive session, …

· 1 min
WebShellLinuxDevelopment Tools

OpenCloudOS SSH exec errors

This post explains SSH exec errors when connecting to OpenCloudOS, including analysis and fixes.

· 2 min
WebShell

Detect CPU Architecture in Shell Scripts

Shows how to detect the machine’s CPU architecture in shell scripts so you can download the correct Code Server package.

· 1 min
LinuxWebShell

How to Use SSE in AI Chat (Step-by-Step Guide)

Explore SSE in AI chat apps: advantages over WebSocket, implementation with EventSource and Fetch APIs. Learn efficient …

· 2 min
WebShellSSEFetch

attachCustomKeyEventHandler in xterm.js

How to use attachCustomKeyEventHandler in xterm.js to intercept keys for special handling, with source notes and use …

· 2 min
WebShellTech Learning

Reading Large Files with FileReader

Optimizing FileReader for 1-3 GB files: chunking, streams, workers, and avoiding main-thread jank.

· 2 min
WebShell

Writing a Welcome Message in xterm.js

How to write a welcome message in an xterm.js terminal: server and client setup for a better connection experience.

· 1 min
WebShell

$TERM Explained (Simple Guide)

Explains the $TERM environment variable, common values, and how it affects terminal capabilities.

· 1 min
WebShell

An Introduction to the ssh2 Package

A practical overview of the ssh2 package for Node.js, including common usage patterns (Client, shell/exec, HTTP agent, …

· 2 min
WebShellNode.js

Introducing xterm-headless

What xterm-headless is and how to use it to implement terminal functionality on Node.js, with use cases and notes.

· 2 min
WebShell

Implementing Input Autocomplete Visuals

For WebShell-like command inputs, fake partial highlighting by layering a positioned div behind the input; CSS alone …

· 1 min
WebShellCSSJavaScript

Copy/Paste Support in WebShell

A summary of copy/paste support in WebShell, covering browser clipboard permissions, default hotkeys, xterm.js behavior, …

· 2 min
WebShell

Command Palette in WebShell

Design and implementation of a command palette in WebShell, including motivation, command modeling, filtering, …

· 3 min
WebShell

Displaying Images in WebShell

How to display images in a terminal via WebShell using xterm.js, including prerequisites, setup, and caveats.

· 2 min
WebShell

Implementing SFTP File Management in WebShell

How to implement visual file management in WebShell using ssh2 and ssh2-sftp-client, including listing, upload/download, …

· 3 min
WebShell

Integrating AI into WebShell

How WebShell integrates AI features: prompt engineering, context handling, token cost control, streaming advantages, and …

· 3 min
WebShellAI

The time-style Parameter in Linux ls

This post explains the time-style parameter in Linux ls, including format output, compatibility, and workarounds.

· 1 min
LinuxWebShell

How to Use xterm-addon-web-links (Step-by-Step Guide)

This article introduces how to use the xterm-addon-web-links plugin to implement link recognition and click …

· 2 min
WebShell

Implementing an Editor Proxy in WebShell

How WebShell implements an editor proxy, including research, architecture, and key implementation points for integrating …

· 1 min
WebShell

Frontend Image Compression in WebShell

A quick survey of frontend image compression: MIME checks, resize/quality tradeoffs, formats, Compressor.js, and …

· 2 min
WebShell

Custom Terminal Background Images in WebShell

How WebShell implements customizable terminal background images using xterm.js with a transparent terminal layer and a …

· 1 min
WebShell

Adding a PWA Shortcut to the Desktop

How we turned our WebShell into an installable PWA so users get a desktop shortcut.

· 2 min
WebShell