Show HN: Paclear – A Fun Twist on the 'Clear' Command with Pac-Man Animation
github.com
github.com
In the videos on the page, the Pac-Man starts completely on-screen, obliterating the content in one go, and proceeds to the right, and disappears as soon as it touches the right edge of the window.
The effect would be so much better if the Pac-Man started 'off-the-left', and came in column-by-column, not obliterating any content until it was covered by its body, and proceeded rightward until it was completely off screen.
To put it another way, this looks like the content is cleared, a Pac-Man is teleported in on the left, moves right, and is teleported out. It would be better if the terminal appeared sort of like a window that the Pac-Man passes through, obliterating the content only when it’s underneath the Pac-Man.
I hope I’m making sense!
Either way it's a pretty cool idea and execution, well done OP :)
Well, unless you speak fluent Japanese to the point you can read lawyer-speak in it, you'll need to translate that, but it is surprisingly sensible. Worth a glance if you're into IP issues. I'm impressed.
Google translate link for the curious: https://www-pacman-com.translate.goog/jp/policy/fanmade.php?...
Nintendo needs to learn a lot from this.
"\f": "\C-upaclear -cyellow -s5\C-m"
...though the experience isn't great, which I blame Konsole for. (It also adds to shell history, where the builtin obviously does not.)
Sometimes junior devs get confused seeing the clear command at work, thinking I opened a new terminal window.
Having a small (fun!) animation actually makes it, um, clearer what's happening.
I don't tend to type `clear`; I just press Ctrl-L, which clears the screen if typed at the start of a prompt. Quicker, and doesn't leave `clear` commands in your history.
Clear UI informs the user when the information has changed. When I'm presenting they can't see me press a command, but they can see a fun Pac-Man.
"BUGS - It sometimes lists directory contents."
I would also like to extend my deepest gratitude to Bandai Namco for publishing the official fan-made policy of Pac-Man, which made this project possible. Thank you all for your support!
Also, ctrl-l isn't universal, but "clear" very nearly is.