-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
mintty supports sixel #15
Comments
Maybe use |
I was trying to get Sixel.jl working for a julia sessing in a cygwin xterm I first generate the escape sequence for the primary device attribute (DA) This is what I got: echo -e '\e[0c' > sixtest.txt
# On xterm in cygwin
cat sixtest.txt # don't display the ^[[? (not in raw mode)
63;1;2;3;4;6;9;15;16;22;28;29c # xterm in cygwin
63;1;2;4;6;9;15;22;29c # mintty in cygwin/win10
echo -e '\e[>0c' > sixmore.txt
cat sixmore.txt
19;370;0c # xterm in cygwin
77;30502;0c # mintty in cygwin/win10
# On windows console
cat sixtest.txt
^[[?1;0c # seems to correspond to VT101 DA
cat sixmore.txt
# no output visible for this It shows that both the cygwin xterm window and the mintty window BUT When I run a julia-1.8.5 instance in any of the three types of terminal shell> cat sixtest.txt
shell> 1;0c The problem seems to be that julia on windows assumes "windows-ness" I'm not versed enough in the platform issues and libuv to understand Other experience with porting software to windows platforms NOTE: I tried using IOCapture but it has the same problem |
Example for using bash to query terminal device attributes are here in |
I encountered this bug as well. There appears to be no way to use Sixel directly in any windows terminal available. It is possible to first save escape sequences in a file
and then |
The main usage of cc: @t-bltg |
I think it would make sense to override the behavior of |
Function This bug is not in Sixel or ImageInTerminal, in all likelyhood. |
Technically, Sixel.ij works to encode an image. You just cannot |
Maybe this issue should be raised in core Julia repository? |
How would that help to fix the issue? |
Checking WSL2 would give more diagnostic information and |
Of course, I can:
That shows the picture on linux in supported terminals, but not on Windows |
Right, not on Windows which is the context of this entire github issue. |
This issue should be raised in Julia repository, Sixel.jl is clearly not at fault. |
It would be great if someone with enough knowledge on Windows terminal behavior can open a generic-enough issue on the Julialang/julia repo -- if it's only about sixel then people might quickly lose the interest. In the meantime, I'll keep this open as a tracker. |
It seems that the TTY response from the sixel control sequence is directly printed on mintty terminal; The result "64;1;2;4;6;..." is expected to be captured by
query_terminal
. I'm not sure what's the underlying issue here as I'm still new to Windows programming.https://github.com/johnnychen94/Sixel.jl/blob/d34028488c8417aa6e10bb6e0ebe18c81d41e44b/src/Sixel.jl#L49
The text was updated successfully, but these errors were encountered: