aminnj / cpptqdm

(unofficial) tqdm-like single header c++ pretty progress bar
MIT License
202 stars 33 forks source link

How To Use It In Microsoft Windows? #3

Open zhang-stephen opened 5 years ago

zhang-stephen commented 5 years ago

I tried to compile it by GCC 8.2, but the binary file cannot be executed correctly My Windows Version is NT 10.0, 64bit, the complier command is following: > g++ --std=c++11 -o debug.exe test.cpp Looking forward to your reply! Thanks!

aminnj commented 5 years ago

I don't have a windows machine handy, but you might try https://github.com/aminnj/cpptqdm/pull/2

zhang-stephen commented 5 years ago

ok, i will have a try. 🤔

kangseung commented 5 years ago

I try use this in windows,but test $STY and test $TMUX not work

Morphlng commented 2 years ago

I'm using MSVC. From my experience, you have to include and change isatty to _isatty. Also, Windows can't execute test $STY so I simply set in_screen to true (in_tmux to false). This meets what I need (no tmux), and it works fine.