View Issue Details

IDProjectCategoryView StatusLast Update
0031036Open CASCADEOCCT:Foundation Classespublic2020-12-02 17:12
Reporterkgv Assigned Toapn  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Target Version7.5.0Fixed in Version7.5.0 
Summary0031036: Foundation Classes, Message_PrinterOStream - add option printing colored text into console
DescriptionColored output would make messages with different gravity more distinguishable.
Therefore, it is proposed adding appropriate option to Message_PrinterOStream.
Steps To Reproduce
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*
TagsNo tags attached.
Test case numberNot needed

Attached Files

  • draw_colored.png (18,511 bytes)
  • console_colors_linux.png (56,870 bytes)

Relationships

related to 0030697 closedbugmaster Draw Harness - Draw_Printer should not be set to Message::DefaultMessenger() by default 
parent of 0031188 closedbugmaster Draw Harness - enable colorized messages output to console by default 

Activities

kgv

2019-10-05 21:53

developer  

draw_colored.png (18,511 bytes)

git

2019-10-05 22:03

administrator   ~0087865

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.

abv

2019-10-05 22:17

manager   ~0087866

Cool!

kgv

2019-10-05 22:30

developer  

console_colors_linux.png (56,870 bytes)

git

2019-10-05 22:31

administrator   ~0087869

Branch CR31036 has been updated forcibly by kgv.

SHA-1: 49fdcbf839111cc8e1b72e96bbaa75fa711dd01a

kgv

2019-10-05 22:35

developer   ~0087871

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).

abv

2019-10-08 07:53

manager   ~0087934

In Message_PrinterOStream, please make names of getter and setter methods coherent: either ToColorize() and SetToColorize(), or Colorize() and SetColorize()

git

2019-10-08 10:37

administrator   ~0087938

Branch CR31036 has been updated forcibly by kgv.

SHA-1: eb2e8d2693ae6887763112b4289dcc831737e5a5

kgv

2019-10-08 10:37

developer   ~0087939

Renamed.

abv

2019-10-11 03:43

manager   ~0088030

Reviewed, please integrate

git

2019-10-23 11:51

administrator   ~0088480

Branch CR31036 has been deleted by kgv.

SHA-1: eb2e8d2693ae6887763112b4289dcc831737e5a5

Related Changesets

occt: master e1d039d5

2019-10-05 19:01:09

kgv


Committer: apn Details Diff
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.
Affected Issues
0031036
mod - src/Message/FILES Diff File
add - src/Message/Message_ConsoleColor.hxx Diff File
mod - src/Message/Message_PrinterOStream.cxx Diff File
mod - src/Message/Message_PrinterOStream.hxx Diff File

Issue History

Date Modified Username Field Change
2019-10-05 21:53 kgv New Issue
2019-10-05 21:53 kgv Assigned To => abv
2019-10-05 21:53 kgv File Added: draw_colored.png
2019-10-05 22:03 git Note Added: 0087865
2019-10-05 22:16 kgv Relationship added related to 0030697
2019-10-05 22:17 abv Note Added: 0087866
2019-10-05 22:30 kgv File Added: console_colors_linux.png
2019-10-05 22:31 git Note Added: 0087869
2019-10-05 22:35 kgv Note Added: 0087871
2019-10-05 22:35 kgv Status new => resolved
2019-10-08 07:53 abv Note Added: 0087934
2019-10-08 07:53 abv Assigned To abv => kgv
2019-10-08 07:53 abv Status resolved => assigned
2019-10-08 10:37 git Note Added: 0087938
2019-10-08 10:37 kgv Note Added: 0087939
2019-10-08 10:37 kgv Assigned To kgv => abv
2019-10-08 10:37 kgv Status assigned => resolved
2019-10-11 03:43 abv Note Added: 0088030
2019-10-11 03:43 abv Assigned To abv => bugmaster
2019-10-11 03:43 abv Status resolved => reviewed
2019-10-23 01:07 apn Changeset attached => occt master e1d039d5
2019-10-23 01:07 apn Assigned To bugmaster => apn
2019-10-23 01:07 apn Status reviewed => verified
2019-10-23 01:07 apn Resolution open => fixed
2019-10-23 11:51 git Note Added: 0088480
2019-10-23 16:54 apn Test case number => Not needed
2019-11-23 01:52 kgv Relationship added parent of 0031188
2020-09-22 22:50 kgv Steps to Reproduce Updated
2020-12-02 16:40 emo Fixed in Version => 7.5.0
2020-12-02 17:12 emo Status verified => closed