Earlier quoted context omitted.
Idk I wouldn’t mind one or two of these as loading screens or something.
What CLI tools have a slow enough boot to require a loading screen? I'm sure there are some but... The only one that comes to mine for me is FileBot[0] - and if the loading screen made it take ANY additional time, I'd be annoyed. [0] https://www.filebot.net/
TTE: Terminal Text Effects
41–50 of 279 posts
Re: TTE: Terminal Text Effects
#42Earlier quoted context omitted.
Why not?
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?
Re: TTE: Terminal Text Effects
#43Re: TTE: Terminal Text Effects
#44Re: TTE: Terminal Text Effects
#45Re: TTE: Terminal Text Effects
#46This is amazing! Please never ever use it in production.
Re: TTE: Terminal Text Effects
#47I'm glad to see we all take the same approach to these sorts of things ^_^ self.move_cursor_to_top() sys.stdout.write(output_string) sys.stdout.flush()
Would there be a more canonical way do do this?
It took several text files with ASCII "pictures" (character data only, no control codes, 80x24) as animation frames, and calculated simple per-line "diffs". Then it generated a sequence of cursor movements to only update the affected areas, skipping large parts of the picture.
That made it much faster than the naive overwriting the whole screenfuls from top, with a visible delay between parts of the screen. My version was able to run "simultaneous" small animations quickly at distant parts of the screen, because they took very few bytes to navigate to and update.
*
*.
* o/
-/M
_H_
E.g. a "juggler" like this could juggle quickly, inside a mostly stationary "circus", with "flags" waving high above on top of it.With current terminals giving you 60fps in true-color mode, it makes little sense, of course.
Re: TTE: Terminal Text Effects
#48Reminds me of the drip.com TSR program that I put on some of the school computers circa 1990.