comint-truncate-buffer

comint-truncate-buffer is an interactive compiled Lisp function in `comint.el'.


(comint-truncate-buffer &optional STRING)

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