mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #2018] [FIX] Resolve output artifact on Linux/WSL (line clearing) #2823
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/2018
State: closed
Merged: Yes
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