comint-redirect-subvert-readonly
comint-redirect-subvert-readonly is a variable defined in `comint.el
'.
Its value is nilDocumentation: Non-nil means `comint-redirect' can insert into read-only buffers. This works by binding `inhibit-read-only' around the insertion. This is useful, for instance, for insertion into Help mode buffers. You probably want to set it locally to the output buffer.