pub fn output_tail(output: &str, max: usize) -> String
The last max characters of output, whole lines where possible, trimmed.
max
output