I'd like to format the zsh output.
eg for unfound functions I now have:
function command_not_found_handler(){echo $fg[red]"\033[4m???\033[0m"$fg[red]" Command \"$1\" not found."}
which returns red text and underlined ???.
I did this for the command_not_found_handler and would like to apply the same logic to other error output e.g.:
zsh: bad pattern: echo[
and
zsh: correct 'ehco' to 'echo' [nyae]?
yet I can't seem to find the names of the correct handlers. Do they even exist as handlers? If not is there a more general approach to changing the warning/error/info output in zsh?
A more general approach would be nice so that errors from other programs would also ge the same format. e.g.
cd: no such file or directory: no/dir
perhaps modify standard error output (I don't know if this even makes sense, I'm really tired...)