eshell-preoutput-filter-functions

eshell-preoutput-filter-functions is a variable defined in `esh-mode.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
Functions to call before output is inserted into the buffer.
These functions get one argument, a string containing the text to be
inserted. They return the string as it should be inserted.

You can customize this variable.