Repository navigation
Patch release — exec TTY fixes
Thanks to @chanztuying (#3) for tracking these down.
Fixed
eexec on web/non-stdin terminals.execTTYnow opens/dev/ttydirectly (matching whattcelldoes internally) instead of relying onos.Stdin. Previously, when KSTool was launched from a web-terminal or any context where stdin was a pipe,ewould either freeze or silently fail.- Local terminal echo / line buffering during exec. Before invoking
ExecJob, the local TTY is now switched to raw mode viaterm.MakeRaw. Without this, the kernel's line discipline echoed escape sequences (^[[A, bracketed-paste markers like^[[200~) and held input until you pressed Enter. The remote shell now sees keystrokes as you type them. - Remote shell setup. The exec command upgraded from a bare
/bin/bashtoenv TERM=xterm-256color /bin/sh -c 'stty sane; exec /bin/bash -i'. Two effects: readline gets a full terminfo entry (arrow keys, history search, color prompts work), and any-echoleft over from a container's.bashrcis reset before the interactive shell starts.
Tooling
build.shnow invokes$GOROOT/bin/goinstead of the ambientgobinary. This avoids a silent build failure when a Go 1.25 wrapper is onPATHbut the toolchain it dispatches to is older (1.22.x) and disagrees on flags.
Compatibility
Drop-in replacement for v2.0.0. No config changes. ~/.kstool/config.yaml and saved env-config presets are unchanged.
Install
wget https://github.com/Suchun-sv/KSTool/releases/download/v2.0.1/kstool-linux-amd64
chmod +x kstool-linux-amd64
./kstool-linux-amd64Verify with SHA256SUMS if you want the integrity check.