libchafa API demo: view X11 window in terminal #298
clort81
started this conversation in
Show and tell
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I felt like playing some games and watching movie in terminal so I made a program to watch any x11 window (by ID) in current terminal.

It's been working for me and it'd be nice if someone else might enjoy it. I watched half of Barton Fink in 160x50 xterm with block-braille rendering. .. surreal
x11_to_chafa.c
gcc -Os -o x11_to_chafa x11_to_chafa.c -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/local/include/chafa -I/usr/local/lib/chafa/include -L/usr/local/lib -I./stb -lchafa -lX11 -lXext -lXcomposite -lm -lglib-2.0 -lzBeta Was this translation helpful? Give feedback.
All reactions