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

sixel support #2

Closed
srlehn opened this issue Apr 5, 2019 · 1 comment
Closed

sixel support #2

srlehn opened this issue Apr 5, 2019 · 1 comment

Comments

@srlehn
Copy link

srlehn commented Apr 5, 2019

In case you need help with the scaling of the sixel graphics you could check out my little project gizak/termui#233.

I use a combination of the ioctl TIOCGWINSZ and the escape codes \033[14t and \033[18t. This can be a bit more difficult with split views of terminal multiplexers like screen and tmux. tmux can pass escape codes through to the terminal.

It is possible to ask the terminal if it is capable to display sixel graphics - the response to \033[0c should contain a 4.

@itchyny
Copy link
Owner

itchyny commented Apr 11, 2019

Getting the terminal size in pixel? Sounds great, I'll look into it, thanks.

@itchyny itchyny closed this as completed Oct 11, 2019
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