Check for zero data errors. Patch #230
pattern-fill support for canvas terminal
pattern-fill support for canvas terminal
reorder main loop to avoid cruft at end of output HTML file