nex3/sass — Issue #257: ANSI terminal output unsafe
Author: grandinquisitor
Created: 2012-01-28 21:41:12+00:00
State: open

I like to edit my code in a CLUI editor and leave sass --watch & running in the background. This way whenever I save it will write onto the current terminal window if there's an error.

The issue is that sass' fancy ANSI color escape codes aren't being set quite right so it makes everything go bezerk. The cursor position isn't being set properly so that it starts writing wherever the cursor is in the current editor and the color code isn't being reset at the end of a line, making everything yellow or red until vim happens to write to the terminal using a different color. Any program that has logging output should make sure to use ANSI escape sequences correctly in order to prevent issues like this.