btop @VERSION@ for Mac OS X 10.4 Tiger

btop++ @VERSION@, the resource monitor, built for Mac OS X 10.4 on every Mac
that runs it: PowerPC (G3, G4 and G5) and Intel. It is one universal
program, and needs nothing that Tiger does not have:

  /usr/local/bin/btop
      btop @VERSION@
  /usr/local/share/btop/themes
      its 41 colour themes
  /usr/local/share/man/man1/btop.1
      its manual page
  /usr/local/share/doc/btop-tiger
      this Read Me, the licences, update-shell-profile.sh

Using it

The installer adds /usr/local/bin to the PATH in your shell profile
(~/.bash_profile for bash, the shell Tiger gives new accounts, or the
.bash_login or .profile you already have) and keeps the old profile beside
it as .btopsave. Open a new window in TigerTTY (not in Tiger's Terminal:
see Terminals below) and type btop. Esc opens its menu, o its options, h
its help; q quits, and man btop tells the rest. btop needs a window of at
least 80 by 24.

If you installed from the command line as another user, or changed shells,
run sh /usr/local/share/doc/btop-tiger/update-shell-profile.sh again.

What it shows, and sudo

btop has four boxes: each processor with its graph, the load average and
the uptime; memory, swap and each disk, with its reads and writes; the
network, each interface with its rates and totals; and every process, which
you can sort, filter, see as a tree, renice or send a signal. A process's
CPU use, memory and thread count come from its Mach task, and Mac OS X 10.4
gives that only to root, and on a PowerPC Mac to you for your own
processes:

- On a PowerPC Mac, btop shows your own processes in full. Root's and
  other users' show their PID, name, user and state, with no CPU use or
  memory.
- On an Intel Mac, Tiger is stricter: without root, btop shows only itself
  in full. Every other process, your own too, shows as root's do.

To see every process in full, type sudo -H btop, then your password. The -H
keeps btop's settings for root in root's home folder: without it, btop
running as root would make ~/.config/btop in yours, owned by root.

btop is installed as an ordinary program, not setuid root as Tiger's top
is: it would then let anyone who runs it stop any process.

What Tiger does not have

- Temperatures: btop reads them from the SMC of an Intel Mac, and should
  show them there. A PowerPC Mac has no SMC, and btop has no other way.
- A process's disk reads and writes (IO/R and IO/W in its detailed view):
  Tiger does not count them.
- The GPU box is for Apple Silicon Macs.
- Threads are counted, not listed one by one.

Terminals

btop draws in 24-bit colour, with rounded boxes, and its graphs in Braille
dots: it needs a terminal like xterm. TigerTTY shows all of it (TigerTTY
0.4 leaves the Braille dots to the font; later versions draw them). Tiger's
own Terminal does not: it reads btop's colours as other attributes and
moves the cursor differently, and btop's screen comes out scrambled, in its
tty mode (btop -t) too. Use TigerTTY, or btop over ssh from the terminal of
a newer Mac. btop -t (16 colours, graphs in shades), and the block and tty
graphs in its options, are there for terminals with fewer colours or no
Braille.

btop wants a UTF-8 locale. TigerTTY sets one (LANG=en_US.UTF-8); where none
is set, as over ssh, btop takes your Mac's own language and sets its UTF-8
form itself.

Uninstalling

In Terminal:

  sudo rm /usr/local/bin/btop
  sudo rm /usr/local/share/man/man1/btop.1
  sudo rm -rf /usr/local/share/btop
  sudo rm -rf /usr/local/share/doc/btop-tiger
  sudo rm -rf "/Library/Receipts/btop @VERSION@.pkg"

Your settings are in ~/.config/btop and its log in ~/.local/state/btop.log;
root's, if you used sudo -H btop, in /var/root/.config/btop and
/var/root/.local/state. If nothing else you use is in /usr/local/bin, take
the "Setting PATH for btop" lines out of your shell profile.

How it was made

btop was cross-compiled on Linux with GCC 13.4 for powerpc-apple-darwin8
(any G3 and up) and i686-apple-darwin8, against the Mac OS X 10.4u SDK, as
C++23, with GCC's C++ library built in. btop's code for the Mac uses calls
of Mac OS X 10.5 and later: this build gives it the same calls, made of what
Tiger has (task_for_pid, task_info, host_statistics and sysctl), the way
Tiger's own top gets its numbers. One patch does the rest, and fixes what
overflowed in 32 bits. btop loads only Tiger's libSystem, CoreFoundation
and IOKit. The package and this disk image were made on Mac OS X 10.4.11
with its own mkbom, pax and hdiutil.

Everything it was built from (btop's source, the compatibility files, the
patch and the build scripts) is in btop-@VERSION@-tiger-source.tar.gz,
beside this disk image.

Built @DATE@.
