mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-27 08:31:32 +00:00
[PR #2018] [MERGED] [FIX] Resolve output artifact on Linux/WSL (line clearing) #2819
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/2018
Author: @niscollect
Created: 1/11/2026
Status: ✅ Merged
Merged: 1/17/2026
Merged by: @cfsmp3
Base:
master← Head:fix/linux-display-artifact📝 Commits (5)
e55b8eb[CLI] Fix output artifacts on Linux/WSL by clearing line on \rc515578docs: update changelog7159d0bfix: resolve merge conflict in changelog8fbfd68style: fix formatting alignmentb7b1041style: fix formatting alignment📊 Changes
2 files changed (+14 additions, -8 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/lib_ccx/utility.c(+13 -8)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Fixes #2017
Description
This PR fixes a display artifact on Linux/WSL where the status message "Analyzing data in general mode" would not fully overwrite the previous text on the line, resulting in corrupted output like
modetreaminstead ofmode.Technical Details
The
mprintfunction insrc/lib_ccx/utility.cwas updated to explicitly send the clear-line sequence (\033[K) when handling a carriage return (\r) on Linux. This ensures the line is wiped clean before the new status is printed, matching the behavior expected on other platforms.Verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.