We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've managed to compile this on Cygwin (under Win 8.1) using the following patch:
diff --git a/Makefile b/Makefile index db49cec..f9a1bb7 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ imcat: imcat.c - cc -std=c99 -Wall -g -o imcat imcat.c -lm + x86_64-w64-mingw32-gcc -std=c99 -Wall -g -o imcat imcat.c -lm + #gcc -std=c99 -Wall -g -o imcat imcat.c -lm run: imcat ./imcat ~/Desktop/*.png diff --git a/imcat.c b/imcat.c index 635fbc0..7b681b1 100644 --- a/imcat.c +++ b/imcat.c @@ -21,6 +21,12 @@ static unsigned char termbg[3] = { 0,0,0 }; #if defined(_WIN64) # include <windows.h> + +#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING +#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 +#endif + + static void get_terminal_size(void) { const HANDLE hStdout = GetStdHandle( STD_OUTPUT_HANDLE );
Yeah, you need MinGW for Cygwin.
The output works for a small and original PNG:
The Original:
The Result (in Cygwin Bash):
In ConEmu (PowerShell 5.1.1)
./image/*.png
The text was updated successfully, but these errors were encountered:
It should work with any size image, with any size terminal, without breaking up the image.
Did you try my pre-built windows binary to see if it behaves better? If so, there may be something wrong with the cygwin build?
Sorry, something went wrong.
Yes, your pre-built only show a few pixels, like in the other issue, so much worse.
No branches or pull requests
I've managed to compile this on Cygwin (under Win 8.1) using the following patch:
Yeah, you need MinGW for Cygwin.
The output works for a small and original PNG:
The Original:
The Result (in Cygwin Bash):
In ConEmu (PowerShell 5.1.1)
./image/*.png
silently fails.(Please add real png for testing!)
(I.e. on OS < Win10)
The text was updated successfully, but these errors were encountered: