The old 'max' parameter was being used both as an input and output parameter which was confusing. Instead have next_line take the column width as input, and output a new width which includes any color escapes and wide characters.