Derive stats-table from a more general class.
Rewrite stats-select to preserve column contexts exactly.
Use portable_getline (almost) everywhere.