Ancestors

Toot

Written by Mekeor Melire on 2024-11-22 at 13:01

having opened #emacs in terminal (-nw), how can i take a "text-only screenshot"? i mean, i could just select the text in the terminal and copy it. can i also do it from within emacs?

also, it'd be nice to have an "html screenshot", i.e. all text (including menu-bar, header-line, margins, mode-line, window separators and echo area) with approriate inline css styles for colors and underline etc. i remember a package for this but if i remember correctly, it only exports a buffer, not the tui-frame.

=> More informations about this toot | More toots from mekeor@catgirl.cloud

Descendants

Written by Mekeor Melire on 2024-11-22 at 13:03

ah, htmlize is the package i was remembering: https://github.com/hniksic/emacs-htmlize

=> More informations about this toot | More toots from mekeor@catgirl.cloud

Written by Wai Hon on 2024-11-22 at 18:20

@mekeor For "text-only screenshot", do you mean copying the text to native OS clipboard (OSC 52) with (rectangle-mark-mode)?

I wrote about OSC 52 in Emacs previously: https://whhone.com/posts/emacs-in-a-termainl/#copy-text-to-native-clipboard--osc-52

=> More informations about this toot | More toots from whhone@social.whhone.com

Written by Mekeor Melire on 2024-11-22 at 18:36

@whhone thanks. clipetty could indeed be part of a solution. but i still need to find out how i can get the whole text of the emacs tui frame. with rectangle mark mode i will only be able to select text within a buffer. but i'd like to copy the whole tui frame, including mode-line etc.. i wonder if that's possible with pure elisp.

=> More informations about this toot | More toots from mekeor@catgirl.cloud

Written by Wai Hon on 2024-11-22 at 19:35

@mekeor Two ideas:

  1. Use the terminal app. Some apps enter copy mode when holding the ctrl.

  1. Use Tmux's copy mode, if you are running inside a tmux session.

=> More informations about this toot | More toots from whhone@social.whhone.com

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113526734393072622
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
286.191807 milliseconds
Gemini-to-HTML Time
1.630308 milliseconds

This content has been proxied by September (3851b).