Been playing around with Btop on Haiku the past couple days.
Btop itself is almost 100% vibe coded in ChatGPT so not likely to see a port from me, but I rather liked how the Haiku theme came out (the only thing I did myself essentially). Btop shown in left terminal, earlier fastfetch theme in right.
9 Likes
I assumed – if it would have been written in shell script, C or C++, or python it would have been ported already -
Once, some month ago I checked, and I do not remember why, but not offered on the forum to port it.
Was it as written in one of the fashionable new languages ?.. I dunno -
Now as I see, here
Github page → Prerequisites
It is written in C++ 23.0 -

Yeah, I wasn’t very clear. I made very few changes to Btop itself so I assume there wouldn’t be much issue porting it. What was done by ChatGPT on my end was to build the entire Haiku collector. There are a few things that don’t work like load avgs, cpu temps, and battery support. But that’s because I was building on a VM where temps and battery just aren’t available, and I’ve been unable to find a way to expose load avgs, and I didn’t think I should try to build anything I couldn’t test myself.
Where I can find this kind of prompt and git graph output !?
The terminal world never ceasedto impress me, even 40 years after my first contact to it…
The git graph is just “git log --graph” (in my case “git log --oneline --decorate --graph --all --max-count=15” specifically).
The prompt is discussed in another post by me earlier in this thread but it’s just a matter having JetBrainsMono Nerd Font installed and set as the terminal font (other fonts may or may not work) and in your /boot/home/config/settings/profile file add:
PS1='\[\e[38;5;47m\]\[\e[0;48;5;47m\] \[\e[38;5;235;48;5;47m\] \[\e[0;48;5;47m\] \[\e[38;5;235;48;5;47m\]\u\[\e[0;48;5;47m\] \[\e[0;38;5;47m\]\[\e[38;5;235;48;5;208m\]\[\e[0;48;5;208m\] \[\e[38;5;235;48;5;208m\]\w\[\e[0;48;5;208m\] \[\e[0;38;5;208m\]\[\e[38;5;235;48;5;221m\]\[\e[0;48;5;221m\] \[\e[38;5;235;48;5;221m\] \[\e[0;48;5;221m\] \[\e[38;5;235;48;5;221m\]\A\[\e[0;48;5;221m\] \[\e[0;38;5;221m\]$(\
if [[ $? -eq 0 ]]; then \
echo "\[\e[38;5;235;48;5;33m\]\[\e[0;48;5;33m\]\[\e[1;97;48;5;33m\] \[\e[0;48;5;33m\]\[\e[0;38;5;33m\]"; \
else \
echo "\[\e[38;5;235;48;5;196m\]\[\e[0;48;5;196m\]\[\e[1;97;48;5;196m\] \[\e[0;48;5;196m\]\[\e[0;38;5;196m\]"; \
fi \
)\[\e[0m\] '