TTE: Terminal Text Effects
171–180 of 279 posts
Re: TTE: Terminal Text Effects
#172Very cool! But I’m just a bit sad that this is “just” a set of effects implemented on top of the same old standard ANSI escape codes as primitives. I’ve been waiting for one or more terminal emulators to get together and add some ridiculous new escape codes, such that animated effects (or things like collapsible sections, font size, “form-input-ness” and “form-button-ness” ala 3270, etc) all get treated as part of th…
And they are often disabled by default, as a potential security risk. We don't get to have fun things, do we? (also worth read: CVE-2003-0063, abusing escape seq is unfortunately a valid concern against adding more stuff).
On the other hand, more and more emulators are adding support for various graphic protocols (sixel, iTerm2 format, kitty format).
> I’ve been waiting for one or more terminal emulators to get together and add some ridiculous new escape codes[...]
Well, it's not much, but mintty apparently has some interesting stuff like audio support[0], and codes for font size and font family[1][2].
iTerm2 also has a bunch of custom escape sequences of varying level of usefulness starting from displaying fireworks animation on cursor position to sending system notifications[3] (although sadly I could not get the last one to work for me).
For some semblance of forms, you can check bubbles[4] and gum[5] (binary to easily incorporate the components into shell scripts).
[0]: https://github.com/mintty/mintty/wiki/CtrlSeqs#audio-support
[1]: https://github.com/mintty/mintty/wiki/CtrlSeqs#font-size
[2]: https://github.com/mintty/mintty/wiki/Tips#alternative-fonts
[3]: https://iterm2.com/documentation-escape-codes.html
Re: TTE: Terminal Text Effects
#173Earlier quoted context omitted.
A few years ago, a submarine cable was knocked out, between our startup's MVP servers in Singapore AWS, and our networked factory stations in Asia. In lieu of the submarine cable, something closer to a wet string was being routed over. It had such high latency and packet loss, that a watchdog timer I'd implemented on the stations was timing out. Fortunately, the remote access we'd built into our stations (SSH and Ope…
I'm very glad that TCP is so robust. I'd take a solid 300 baud connection over a spotty cellular connection during most emergencies. Having worked and played on flaky high-latency and low-throughput networks much of my life, I mostly visualize things in my head—as you likely mean by 'command-line-and-editor-when-you-feel-every-byte-transmitted'. Open a connection and queue your commands; wait for output. It works if…
mosh hostname -- screen -S philsnow
I don't think I've had to use this over a truly terrible connection, but mosh worked a treat a ~decade ago while tunneling through DNS from a cruise ship that charged exorbitant rates for wifi while underway, but which allowed unlimited DNS traffic.> It works if you don't make any typos
mosh helps a bit with that too: you get local predictive echo of your keystrokes and you can't "recall" keystrokes but you can queue up backspaces to cover up your typos. Doesn't help where a single typo-ed keystroke is a hotkey that does something you didn't want, though.
Re: TTE: Terminal Text Effects
#174Earlier quoted context omitted.
Imagine that the CLI tool you use most often every day - a compiler, a package manager, like that - adds animations like these in common operations. Now you have to wait for the animation to finish before you can continue your work. How do you feel about that?
It’s trivial to add in a keypress that short circuits the animation. God, this website is full of the grumpiest people on the planet.
Re: TTE: Terminal Text Effects
#175Earlier quoted context omitted.
I think my first action in a situation like that would be an attempt to install mosh from a local mirror.
That needs a binary to run on the remote host for protocol support, doesn't it? I wonder how long that'd take to get transferred and running, over as slow a link as it sounds like this was.
Re: TTE: Terminal Text Effects
#176Re: TTE: Terminal Text Effects
#177Earlier quoted context omitted.
Of course it would be obnoxious. As an "about" screen, or in a opt-in funny theme why not !
The idea that anyone would use this during "common operations" is laughable, but as one offs during specific operations, maybe.
It's been a while since I dared assume anything at all was so obviously absurd that no one could ever think to do it - not least since significant portions of my career to date have consisted of cleaning up after people who had.
Re: TTE: Terminal Text Effects
#178This is amazing! Please never ever use it in production.