I/O code now handles arbitrary terminal sizes of up to 2000x2000. Fix freeze in %SYSGEN routine.