Also, found one of the easter eggs!
Show HN: Bash Screensavers
61–70 of 82 posts
Re: Show HN: Bash Screensavers
#62Earlier quoted context omitted.
Even after updating still getting the same error checked active bash version: echo $BASH_VERSION 5.3.3(1)-release
What's relevant is whether "/usr/bin/env bash" runs the correct one.
I found the 4k fullscreen perf in iTerm2 to be not-great, so I did it again in the kitty (GPU powered) terminal macos app, and it was good.
Re: Show HN: Bash Screensavers
#63 #!/usr/bin/env bash
_cleanup_and_exit() {
tput cnorm
tput sgr0
clear
exit 0
}
trap _cleanup_and_exit SIGINT
while true; do
width=$(tput cols)
height=$(tput lines)
tput setab 0
clear
tput civis
x=$((RANDOM % width + 1))
y=$((RANDOM % height + 1))
color_code=$((RANDOM % 256))
printf "\e[${y};${x}H\e[38;5;${color_code}m"
sleep 1
doneRe: Show HN: Bash Screensavers
#64Re: Show HN: Bash Screensavers
#65Never a nice surprise when I find rm -rf / --no-preserve-root in a public repo, apart from this time! Also, found one of the easter eggs!
For folks curious about the rm -rf see https://github.com/attogram/bash-screensavers/blob/main/gall... line 339
Re: Show HN: Bash Screensavers
#66Earlier quoted context omitted.
IIRC macOS is at least one major version behind in bash.
something something licensing something something new installs default to bash not being the default terminal. someone else mentioned macports, but there's a new version available via brew as well
Re: Show HN: Bash Screensavers
#67Earlier quoted context omitted.
something something licensing something something new installs default to bash not being the default terminal. someone else mentioned macports, but there's a new version available via brew as well
So far I have resisted the change. All the people I know who think zsh is great have a fairly large number of addons to get it that way.
Re: Show HN: Bash Screensavers
#68How can anyone have a bad day when great projects like this pop up on the front page of HN? Did you see the library of viz? https://github.com/attogram/bash-screensavers/blob/main/libr... My favourite API: lov_die_with_honor()
Re: Show HN: Bash Screensavers
#69Re: Show HN: Bash Screensavers
#70Do screens still need to be saved?
1: https://www.pcworld.com/article/2918628/your-oled-displays-w...