Conversation
Notices
-
Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Friday, 14-Jul-2023 21:48:37 JST 翠星石 @tejr Very nice.
For such a short script maybe it's not worth bothering, but it's usually best to note the copyright and license in file comments, so it's clear what the license in case the individual source files and the rest get separated (which seems to happen fairly commonly for good software).-
Embed this notice
Tom Ryder (tejr@mastodon.sdf.org)'s status on Friday, 14-Jul-2023 21:48:38 JST Tom Ryder I wrote a wrapper for the OpenSSH client to downgrade the sent TERM strings for IPv4/IPv6 hostnames or hostnames matching a set of patterns, which network gear CLIs are more likely to accommodate.
Newer OpenSSH can send a TERM string per-host with ssh_config(5) files, but I wanted something that adapted to the outer terminal: tmux-256color→screen, xterm256-color→xterm, etc.
This came up because newer versions of tmux set their own TERM type now by default.
-
Embed this notice