If the console preferences settings are standard (in other words, you haven't made any changes), then red is for error
Black is Standard Out Text Color
This preference controls the color of text written to the standard
output stream by an application.
Red is Standard Error Text Color
This preference controls the color of text written to the standard
error stream by an application.
Docs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…