Skip to content

Screencast desktop - #43

Open
tombh wants to merge 3 commits into
jart:masterfrom
tombh:x11
Open

Screencast desktop#43
tombh wants to merge 3 commits into
jart:masterfrom
tombh:x11

Conversation

@tombh

@tombh tombh commented Oct 16, 2016

Copy link
Copy Markdown

I don't know if you want this is hiptext? Obviously it's mostly useful for my texttop app. But it's kind of cool anyway I reckon.

It uses X11's API XGetSubImage to render the current desktop. Hiptext currently works on Windows right? So it would need a compiler option to disable it on the windows binary.

Also, I'm not 100% sure I've done the colour conversion in Graphic Next() correctly, colours look accurate when rendered, so I assume it's correct. Well in fact this is the first C++ I've written and I don't think I've done the OOP stuff quite right.

tombh added 3 commits October 13, 2016 10:06
line, including the last line. This meant that there would always
be height+1 lines affected. If an image's height was calculated
to be the full height of the terminal then this last height+1
newline would shift the entire image 1 row up. This wasn't so
noticeable for static images, but caused annoying flickering during
the rapid updates of multiple images in movies, etc.
Compile against newer versions of ffmpeg, namely v3.0.1
Fixes jart#36
Includes potentially reusable code to handle keyboard input.
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.

1 participant