Live data from Hacker News

TTE: Terminal Text Effects

chrisbuilds.github.io

81–90 of 279 posts

Re: TTE: Terminal Text Effects

#81

I'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?

Not redrawing the parts of the screen that don't need to be redrawn. There's going to be a tradeoff between the amount of works the terminal has to do parsing the input stream, the amount of work the terminal has to do to redraw/update its own buffer, and the amount of work necessary in the program to compute the necessary move commands.

IIRC, ncurses does this under the hood.

Re: TTE: Terminal Text Effects

#82
post #80
post #75

No "The Matrix" effect? That was one of the earliest programs I wrote back in 2000, and I was so proud of myself.

I can tell I'm too old now because I expected the Matrix projection to be in the first four examples and it's not even on the page.

It's not me that's too old, it's the world that's too young.

Re: TTE: Terminal Text Effects

#83
I'm imagining several genres of text based adventures that could make very good use of this library. Cyberpunk, fantasy, and horror.

Very subtle uses of this could go a long way.

Re: TTE: Terminal Text Effects

#85

Earlier 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.

It's not grumpy to prefer function over form in a tool. People optimize for different things. GP's comment is reasonable; they're optimizing for something different than you.

Re: TTE: Terminal Text Effects

#87
post #80
post #75

No "The Matrix" effect? That was one of the earliest programs I wrote back in 2000, and I was so proud of myself.

I can tell I'm too old now because I expected the Matrix projection to be in the first four examples and it's not even on the page.

I was hoping for the "no more secrets" effect.

https://www.youtube.com/watch?v=F5bAa6gFvLs

Re: TTE: Terminal Text Effects

#88
post #80

Earlier quoted context omitted.

I can tell I'm too old now because I expected the Matrix projection to be in the first four examples and it's not even on the page.

I was hoping for the "no more secrets" effect. https://www.youtube.com/watch?v=F5bAa6gFvLs

Peace on Earth, and goodwill toward men.

I'll see what I can do.

Post reply on HN