std: integrate DebugAllocator with terminal mode

by adding a new std.Option for log.terminalMode

this is an alternative to the approach that was deleted in
aa57793b680b3da05f1d888b4df15807905e57c8
b243e8f8ccAndrew Kelley committed on 12/27/2025, 3:58:56 AMparenta72c411
3 files changedLine totals unavailable