* refactor(terminal): unify bounded buffers * refactor(terminal): tighten buffer closure * refactor(terminal): keep buffer policy private