Skip to content

Draw - Fix message color mixing (#685)#685

Merged
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
dpasukhi:draw_message_color
Aug 24, 2025
Merged

Draw - Fix message color mixing (#685)#685
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
dpasukhi:draw_message_color

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

Message color from previous message in Unix was mixed.

Message color from previous message in Unix was mixed.
@dpasukhi dpasukhi requested a review from Copilot August 24, 2025 17:01
@dpasukhi dpasukhi added the 1. DRAW TCL scripts, OCCT DRAW commands and plug-ins label Aug 24, 2025
@dpasukhi dpasukhi changed the base branch from master to IR August 24, 2025 17:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a message color mixing issue in Unix where console text colors from previous messages would carry over to subsequent output. The fix ensures that text color is properly reset before printing newlines, preventing color bleeding between messages.

Key changes:

  • Moved color reset operations to occur before newline output in both dputs command and main interpreter
  • Ensures proper color isolation between console messages

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Draw/TKDraw/Draw/Draw_BasicCommands.cxx Reordered color reset to happen before newline in dputs command
src/Draw/TKDraw/Draw/Draw.cxx Separated result output from newline and moved color reset before newline in interpreter

@dpasukhi dpasukhi merged commit 8ae8540 into Open-Cascade-SAS:IR Aug 24, 2025
23 checks passed
@dpasukhi dpasukhi deleted the draw_message_color branch August 24, 2025 18:49
@github-project-automation github-project-automation bot moved this from Todo to Done in Maintenance Aug 24, 2025
dpasukhi pushed a commit that referenced this pull request Sep 6, 2025
Message color from previous message in Unix was mixed.
dpasukhi pushed a commit that referenced this pull request Sep 6, 2025
Message color from previous message in Unix was mixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. DRAW TCL scripts, OCCT DRAW commands and plug-ins

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants