update math for text-based terminal

No match.