MantisBT - Open CASCADE
View Issue Details
0031036Open CASCADE[OCCT] OCCT:Foundation Classespublic2019-10-05 21:532020-09-22 22:50
kgv 
apn 
normalfeature 
verifiedfixed 
 
[OCCT] 7.5.0 
Not needed
0031036: Foundation Classes, Message_PrinterOStream - add option printing colored text into console
Colored output would make messages with different gravity more distinguishable.
Therefore, it is proposed adding appropriate option to Message_PrinterOStream.
pload VISUALIZATION;dtracelevel trace;vinit View1
vrenderparams -option
text2brep t2 "Text" -font "DUMMY"
vfont -verbose
text2brep t1 "Text" -font "Times"
vpoint p 0 0 0;vclear
he vs*
No tags attached.
related to 0030697verified bugmaster Draw Harness - Draw_Printer should not be set to Message::DefaultMessenger() by default 
parent of 0031188verified bugmaster Draw Harness - enable colorized messages output to console by default 
png draw_colored.png (18,511) 2019-10-05 21:53
https://tracker.dev.opencascade.org/
png console_colors_linux.png (56,870) 2019-10-05 22:30
https://tracker.dev.opencascade.org/
Issue History
2019-10-05 21:53kgvNew Issue
2019-10-05 21:53kgvAssigned To => abv
2019-10-05 21:53kgvFile Added: draw_colored.png
2019-10-05 22:03gitNote Added: 0087865
2019-10-05 22:16kgvRelationship addedrelated to 0030697
2019-10-05 22:17abvNote Added: 0087866
2019-10-05 22:30kgvFile Added: console_colors_linux.png
2019-10-05 22:31gitNote Added: 0087869
2019-10-05 22:35kgvNote Added: 0087871
2019-10-05 22:35kgvStatusnew => resolved
2019-10-08 07:53abvNote Added: 0087934
2019-10-08 07:53abvAssigned Toabv => kgv
2019-10-08 07:53abvStatusresolved => assigned
2019-10-08 10:37gitNote Added: 0087938
2019-10-08 10:37kgvNote Added: 0087939
2019-10-08 10:37kgvAssigned Tokgv => abv
2019-10-08 10:37kgvStatusassigned => resolved
2019-10-11 03:43abvNote Added: 0088030
2019-10-11 03:43abvAssigned Toabv => bugmaster
2019-10-11 03:43abvStatusresolved => reviewed
2019-10-23 01:07apnChangeset attached => occt master e1d039d5
2019-10-23 01:07apnAssigned Tobugmaster => apn
2019-10-23 01:07apnStatusreviewed => verified
2019-10-23 01:07apnResolutionopen => fixed
2019-10-23 11:51gitNote Added: 0088480
2019-10-23 16:54apnTest case number => Not needed
2019-11-23 01:52kgvRelationship addedparent of 0031188
2020-09-22 22:50kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23572#r23572

Notes
(0087865)
git   
2019-10-05 22:03   
Branch CR31036 has been created by kgv.

SHA-1: e635593a60a4f45d88003bb4a4769eec34f2e365


Detailed log of new commits:

Author: kgv
Date: Sat Oct 5 22:01:09 2019 +0300

    0031036: Foundation Classes, Message_PrinterOStream - add option printing colored text into console
    
    New property Message_PrinterOStream::ToColorize() can be set to colorize text output into console.
    The new option is disabled by default.
(0087866)
abv   
2019-10-05 22:17   
Cool!
(0087869)
git   
2019-10-05 22:31   
Branch CR31036 has been updated forcibly by kgv.

SHA-1: 49fdcbf839111cc8e1b72e96bbaa75fa711dd01a
(0087871)
kgv   
2019-10-05 22:35   
Patch is ready for review.

Note that without 0030697 this is useless for Draw Harness.

It might be also considered enabled by default
(but disabled within "testgrid" to avoid special codes in test logs redirected from std::cout).
(0087934)
abv   
2019-10-08 07:53   
In Message_PrinterOStream, please make names of getter and setter methods coherent: either ToColorize() and SetToColorize(), or Colorize() and SetColorize()
(0087938)
git   
2019-10-08 10:37   
Branch CR31036 has been updated forcibly by kgv.

SHA-1: eb2e8d2693ae6887763112b4289dcc831737e5a5
(0087939)
kgv   
2019-10-08 10:37   
Renamed.
(0088030)
abv   
2019-10-11 03:43   
Reviewed, please integrate
(0088480)
git   
2019-10-23 11:51   
Branch CR31036 has been deleted by kgv.

SHA-1: eb2e8d2693ae6887763112b4289dcc831737e5a5