Monkeypatch for stdout with knobs. For testing purposes, or other things.