diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-13 19:17:09 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-13 19:17:09 +0200 |
| commit | 3d59b5d7036c35fe484d052ff32dbdc9d0a75cf7 (patch) | |
| tree | 8d24babc8cd3d097800af0bd960c7ba1d72927d7 /src/zen/progressbar.cpp | |
| parent | use mimalloc by default (#952) (diff) | |
| download | archived-zen-3d59b5d7036c35fe484d052ff32dbdc9d0a75cf7.tar.xz archived-zen-3d59b5d7036c35fe484d052ff32dbdc9d0a75cf7.zip | |
fix utf characters in source code (#953)
Diffstat (limited to 'src/zen/progressbar.cpp')
| -rw-r--r-- | src/zen/progressbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zen/progressbar.cpp b/src/zen/progressbar.cpp index d39b756ae..7a0668b80 100644 --- a/src/zen/progressbar.cpp +++ b/src/zen/progressbar.cpp @@ -295,7 +295,7 @@ ProgressBar::RenderStatusLine(std::string_view Line) uint32_t CurrentRows = TuiConsoleRows(0); if (CurrentRows >= 3 && CurrentRows != m_ScrollRegionRows) { - // Terminal was resized — reinstall scroll region + // Terminal was resized - reinstall scroll region TuiSetScrollRegion(1, CurrentRows - 1); m_ScrollRegionRows = CurrentRows; } @@ -304,12 +304,12 @@ ProgressBar::RenderStatusLine(std::string_view Line) // is atomic and log output from other threads cannot interleave. ExtendableStringBuilder<512> Buf; Buf << "\x1b" - "7" // ESC 7 — save cursor + "7" // ESC 7 - save cursor << fmt::format("\x1b[{};1H", m_ScrollRegionRows) // move to bottom row << "\x1b[2K" // erase entire line << Line // progress bar content << "\x1b" - "8"; // ESC 8 — restore cursor + "8"; // ESC 8 - restore cursor OutputToConsoleRaw(Buf); } |