htop @VERSION@ for Mac OS X 10.4 Tiger

htop @VERSION@, the interactive process viewer, 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 with its own ncurses 6.6 inside, and needs nothing that
Tiger does not have:

  /usr/local/bin/htop
      htop @VERSION@
  /usr/local/share/man/man1/htop.1
      its manual page
  /usr/local/share/doc/htop-tiger
      this Read Me, the licenses, 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 .htopsave. Open a new Terminal window and type htop. F1 shows the
keys, F10 or q quits, and man htop tells the rest.

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

What it shows, and sudo

htop lists every process, with meters for each CPU, memory and swap, the
load average and the uptime. A process's CPU time, memory and state 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, htop shows your own processes in full. Root's and
  other users' show their PID, user, priority and name, with state ? and
  no CPU, memory or time.
- On an Intel Mac, Tiger is stricter: without root, htop 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 htop, then your password. The -H
keeps htop's settings for root in root's home folder: without it, htop
running as root would make ~/.config/htop in yours, owned by root.

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

What Tiger does not have

- Threads are counted (the NLWP column), not listed one by one: that needs
  the thread identifiers of Mac OS X 10.5.
- The CWD column stays empty, and the FDs meter says unknown.
- VIRT leaves out the shared libraries, as Tiger's top and ps do.

Terminals

Where the locale is UTF-8, as TigerTTY sets it, htop draws its tree and its
sort mark in Unicode. Tiger's Terminal sets no LANG unless you ask it to, and
htop then draws in plain ASCII. It reads the terminal descriptions Tiger has
(xterm-color for Terminal, xterm-256color for TigerTTY).

Uninstalling

In Terminal:

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

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

How it was made

htop 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. htop's
code for the Mac uses libproc, which came with 10.5: this build gives it the
same calls, made of what Tiger has (task_for_pid, task_info, thread_info and
sysctl), the way Tiger's own top and ps get their numbers. One small patch
does the rest. ncurses 6.6 with wide characters is linked in and reads
Tiger's own terminfo. htop 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 (htop's and ncurses' source, the compatibility
files, the patch and the build scripts) is in
htop-@VERSION@-tiger-source.tar.gz, beside this disk image.

Built @DATE@.
