Date: Tue, 04 Jul 2023 00:53:59 +0900 From: Hiroo Ono <hiroo@oikumene.net> To: <freebsd-hackers@freebsd.org> Subject: Re: screenshot for vt(4) Message-ID: <b17222d9-1785-49ec-b67d-8069fb269e2d@oikumene.net> In-Reply-To: <e03b8ef6-c33b-4393-aba3-0811833df3cb@oikumene.net> References: <e03b8ef6-c33b-4393-aba3-0811833df3cb@oikumene.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, forgot to mention that there are examples here: http://barleycorn.oikumene.net/ports-patch/ On 2023=E5=B9=B47=E6=9C=884=E6=97=A5=E7=81=AB=E6=9B=9C=E6=97=A5 0=E6=99=8244=E5= =88=8637=E7=A7=92 JST, Hiroo Ono wrote: > Hello, > > I made a patch to enable screenshot with vt(4). The patch is here. > https://reviews.freebsd.org/D40858 > > I would like to hear comments and reviews if it can be merged to FreeBSD. > When I mentioned it on mastodon, the patch lacked one file, sorry. > Please try this if you want to get the patch in one file. > http://barleycorn.oikumene.net/ports-patch/0001-Implement-screenshot-with-v= t-4.patch > > There are three types of screenshot. > 1. vidcontrol -p text < /dev/ttyv0 > screenshot.txt > which generate plain text output. > 2. vidcontrol -p term < /dev/ttyv0 > screenshot.txt > which generate text with ansi escape sequences. > 3. vidcontrol -p raw < /dev/ttyv0 > screenshot.raw > which generate a raw picture file. > > The raw file can be converted to PNG via separate program. > http://barleycorn.oikumene.net/ports-patch/vtraw2png.tar.gz=20 > https://helixteamhub.cloud/individual674914/projects/vtraw2png/repositories= /vtraw2png/tree/default > It needs libpng (graphics/png). > It only supports 32bit depth, but I think it is enough for=20 > vt(4). Sorry if I am wrong. > > I only tested this patch on i386(vga) and amd64(efifb). The vga=20 > fb does not support raw output (it does not have vt_fb_ioctl=20 > function). > > Best regards. > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b17222d9-1785-49ec-b67d-8069fb269e2d>