cpptqdm icon indicating copy to clipboard operation
cpptqdm copied to clipboard

How To Use It In Microsoft Windows?

Open zhang-stephen opened this issue 6 years ago • 4 comments

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!

zhang-stephen avatar Feb 20 '19 13:02 zhang-stephen

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

aminnj avatar Feb 20 '19 20:02 aminnj

ok, i will have a try. 🤔

zhang-stephen avatar Feb 21 '19 11:02 zhang-stephen

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

kangseung avatar Jul 09 '19 06:07 kangseung

I'm using MSVC. From my experience, you have to include <io.h> 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.

Morphlng avatar Jul 14 '22 00:07 Morphlng