Comments (3)
Also just for the reference, one can simplify the ANSI codes used to move lines up. Instead of a for loop, by writing: "\x1b[" << N << "A"
will move N
lines up :)
from indicators.
Ok I actually just double checked and
auto hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleMode(hStdout, ENABLE_PROCESSED_OUTPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING);
seems to work as well (at least on Win 10).
from indicators.
I'm up for integrating these cursor movement functions in this library. It'd be good to support Windows better regarding this.
Another sticky point that will affect Windows is when we start calculating multi-byte character display width (using e.g., wcswidth in Linux) to better support unicode characters in progress bars. This is necessary to make sure the progress bar correctly displays in the configured width
.
from indicators.
Related Issues (20)
- print to console HOT 2
- How to let indicator don't cover the print message? HOT 3
- Can i re-use a prior defined bar rather than define two separated bars? HOT 3
- [question] An `std::range_error` exception in `intermediate_progress_bar.cpp`.
- [bug] Cannot compile the sample codes with MSVC compiler on Windows.
- Passing boost::optional ProgressBar handle (from inside DynamicProgress) to function for mutation
- conversion to ‘float’ from ‘double’ may alter its value [-Werror=float-conversion]
- Block progress bar not working
- Library does not compile. HOT 4
- C++17 deprecated codecvt_utf8 breaks build on MSVC with C++20 HOT 3
- continuously spinning line appears to be missing
- Write DynamicProgress bar to stderr
- indicators changes locale HOT 1
- Dynamically set MaxProgress during iteration
- setlocale in utf8_decode will throw std::logic_error when setlocale returns NULL
- In Windows console, the progress bar does not stay on the same line HOT 3
- Progress bar spamming in new lines depending on window width
- DynamicProgress should take ownership over progressbars HOT 3
- DynamicProgress progress bar ordering
- IndeterminateProgressScaleWriter loops forever when Lead is set to ""
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indicators.