You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd
Mihai Parparita 9a2171e4ea cmd/tsconnect: make terminal resizable
Makes the terminal container DOM node as large as the window (except for
the header) via flexbox. The xterm.js terminal is then sized to fit via
xterm-addon-fit. Once we have a computed rows/columns size, and we can
tell the SSH session of the computed size.

Required introducing an IPNSSHSession type to allow the JS to control
the SSH session once opened. That alse allows us to programatically
close it, which we do when the user closes the window with the session
still active.

I initially wanted to open the terminal in a new window instead (so that
it could be resizable independently of the main window), but xterm.js
does not appear to work well in that mode (possibly because it adds an
IntersectionObserver to pause rendering when the window is not visible,
and it ends up doing that when the parent window is hidden -- see
xtermjs/xterm.js@87dca56dee)

Fixes #5150

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2 years ago
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 3 years ago
cloner cmd/viewer: add codegen tool for Views 3 years ago
derper cmd/derper: remove support for logtail logging (#5248) 2 years ago
derpprobe all: use any instead of interface{} 3 years ago
gitops-pusher cmd/gitops-pusher: things i forgot to push last PR (#5128) 2 years ago
hello net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
mkpkg cmd/mkpkg: use package flag (#4373) 3 years ago
nginx-auth cmd/nginx-auth: maintainer scripts and tailnet checking (#4460) 3 years ago
printdep Docker: add ALPINE.txt to manage alpine versions 2 years ago
proxy-to-grafana all: gofmt for Go 1.19 2 years ago
speedtest cmd: upgrade to ffcli v3 3 years ago
tailscale all: migrate more code code to net/netip directly 2 years ago
tailscaled all: migrate more code code to net/netip directly 2 years ago
testcontrol all: use any instead of interface{} 3 years ago
tsconnect cmd/tsconnect: make terminal resizable 2 years ago
tsshd cmd/tsshd: add a package line to appease gofmt 2 years ago
viewer all: gofmt for Go 1.19 2 years ago