help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screenshots, frame shots straight from Emacs


From: Tomas Hlavaty
Subject: Re: Screenshots, frame shots straight from Emacs
Date: Tue, 20 Jul 2021 13:36:10 +0200

On Sat 26 Jun 2021 at 00:04, Emanuel Berg via Users list for the GNU Emacs text 
editor <help-gnu-emacs@gnu.org> wrote:
> Jean Louis wrote:
>> As you like screenshots, here is one way to generate Emacs
>> frame shots straight from Emacs without using external
>> programs

that one requires GUI emacs

> (defun dump (desc)
>   (interactive "sdescription: ")
>   (message nil)
>   (let ((file (format "~/%s.png" desc)))
>     (shell-command (format "sudo fbgrab %s" file))
>     (shell-command (format "sudo chown %s %s" user-login-name file))
>     (shell-command (format "sudo chgrp %s %s" user-login-name file)) ))

the above one requires external programs

this one works with plain console emacs:
https://logand.com/sw/emacs-framebuffer/file/emacs-framebuffer.el.html#l755



reply via email to

[Prev in Thread] Current Thread [Next in Thread]