Function: comint-truncate-buffer

Truncate the buffer to `comint-buffer-maximum-size'.
This function could be on `comint-output-filter-functions' or bound to a key.

(fn &optional STRING)