FogBugz (Case [Issue]20070) Command Line - terminal color not reset after a error message

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]20070) Command Line - terminal color not reset after a error message

Pharo Issue Tracker
FogBugz Notification
avatar
K K Subbu opened Case 20070: terminal color not reset after a error message and assigned it to K K Subbu:
Bug in Project:  Command Line: 1. Pharo Image  •  You are subscribed to this case
A bug in command line handler affects people who work on build scripts. When a error message is printed, the color is set to red to highlight the message, but the default colors are not restored before printing subsequent lines in an st script. I had to restore them with "echo -e '\e[0m'" escape sequence. E.g.
~~~~
$ ./pharo Pharo.image eval 'ProtoObjet methodDict size;'
Syntax Error on line 1: 'Message expected'
==========================================
1: ProtoObjet methodDict size;
_^_
$
~~~~

The problem was traced to STCommandLineHandler>>#printCompilerWarning: method, which did not restore the color. Attached is a patch which restores normal colors after the message is printed.
Priority Priority: 4 – Would be nice Status Status: Working On
Assigned To Assigned to: K K Subbu Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker