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 display of avatars, media attachments, etc. #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danschwarz
Copy link
Collaborator

@danschwarz danschwarz commented Jan 26, 2023

I don't expect you to merge this PR into master, but it's fun to try out with a properly configured terminal that supports SIXEL images (Xterm works).

You'll need to set fonts up as I do in .Xresources or things won't look correct. I don't have autodetect of font-size-in-pixels yet, so it's hardcoded for these font settings.

Don't run under tmux or screen, unless you have a special build of those programs configured to pass through SIXELs.

image

.Xresources snippet

`
! Use a truetype font and size.
! Cascadia Mono (no PL) should work as well
xtermfaceName: Cascadia Mono PL
xterm
faceSize: 14
xtermbackground: black
xterm
foreground: grey

! Sixels support with a matching palette
XTermdecTerminalID: vt340
XTerm
numColorRegisters: 256
`

@ihabunek
Copy link
Owner

Nice, I need to find some time to try it out. I wouldn't necessarily be against merging it if it's guarded behind a user setting which is disabled by default.

@danschwarz
Copy link
Collaborator Author

Yes, that makes sense. The code needs cleanup before a merge, particularly the bits in timeline.py need refactoring.

@r3k2
Copy link

r3k2 commented Jul 17, 2024

what this merged to main?

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

Successfully merging this pull request may close these issues.

3 participants