Skip to content
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

Cannot get sixel support to work with xterm #21

Open
rrthomas opened this issue Jun 29, 2015 · 3 comments
Open

Cannot get sixel support to work with xterm #21

rrthomas opened this issue Jun 29, 2015 · 3 comments

Comments

@rrthomas
Copy link

Thanks very much for the sixel support, @saitoha! Unfortunately, I can't make it work.

I am trying with xterm. So far I've tried patchlevel 297 as shipped with Ubuntu 14.04, which, according to the Ubuntu changelog, has sixel support activated; I also tried patchlevel 312, as shipped with Ubuntu 15.04, which ditto (and I feel safer there because I found the enabling configure flag in the rules file!).

When I run ./hiptext --sixel16 --spectrum, hiptext just hangs, consuming no CPU. Same for --sixel2 (or --sixel256).

I tried mlterm too, version 3.1.3, and it works after a fashion; only the color display is odd: monochrome works OK, --sixel16sorta-works but displays much less varied colors (it seems to have far fewer to play with) than without --sixel16, and --sixel256 displays just black.

I tried with the provided PNGs and got the same results.

@saitoha
Copy link
Contributor

saitoha commented Jun 29, 2015

@rrthomas Thanks for your reporting.
I'll try to reproduce it at the end of this week.
Or can you try the following settings?

$ echo 'XTerm*allowWindowOps: true' >> ~/.Xresources
$ echo 'XTerm*decTerminalID: vt340' >> ~/.Xresources
$ echo 'XTerm*sixelScrolling: true' >> ~/.Xresources
$ echo 'XTerm*regisScreenSize: 1920x1080' >> ~/.Xresources
$ echo 'XTerm*numColorRegisters: 256' >> ~/.Xresources
$ xrdb ~/.Xresources
$ xterm -e 'printf "\033[4;480;640t" && hiptext --sixel16 --spectrum && cat'

@rrthomas
Copy link
Author

Oh dear, my bad: I hadn't rebuilt hiptext, so I was running with an old version of sixel support. It works now as well as it does in mlterm.

There is one interesting thing about your instructions above: in README.md, it says to use -ti vt340, but that doesn't seem to be necessary.

(The strangeness of the colors remains, in xterm and mlterm.)

@saitoha
Copy link
Contributor

saitoha commented Jul 13, 2015

Sorry for late response. I think sixel feature should be provided along with the image dithering feature. Now I'm working for it.
2015-07-13 23 03 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants