mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
textproc/termshot: Creates screenshots based on terminal command output
Terminal screenshot tool, which takes the console output and renders an output image that resembles a user interface window. The idea is similar to what carbon.now.sh, instaco.de, or codekeep.io/screenshot do. Instead of applying syntax highlight based on a programming language, termshot is using the ANSI escape codes of the program output. The result is clean screenshot (or recreation) of your terminal output. If you want, it has an option to edit the program output before creating the screenshot. This way you can remove unwanted sensitive content. Like time, watch, or perf, just place termshot before the command and you are set. WWW: https://github.com/homeport/termshot
This commit is contained in:
parent
7d2af591ec
commit
cbae2daa14
4 changed files with 38 additions and 0 deletions
|
@ -1921,6 +1921,7 @@
|
||||||
SUBDIR += te-aspell
|
SUBDIR += te-aspell
|
||||||
SUBDIR += te-hunspell
|
SUBDIR += te-hunspell
|
||||||
SUBDIR += teckit
|
SUBDIR += teckit
|
||||||
|
SUBDIR += termshot
|
||||||
SUBDIR += tet-aspell
|
SUBDIR += tet-aspell
|
||||||
SUBDIR += texi2db
|
SUBDIR += texi2db
|
||||||
SUBDIR += texi2html
|
SUBDIR += texi2html
|
||||||
|
|
23
textproc/termshot/Makefile
Normal file
23
textproc/termshot/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
PORTNAME= termshot
|
||||||
|
DISTVERSIONPREFIX= v
|
||||||
|
DISTVERSION= 0.2.4
|
||||||
|
CATEGORIES= textproc graphics
|
||||||
|
|
||||||
|
MAINTAINER= lbartoletti@FreeBSD.org
|
||||||
|
COMMENT= Creates screenshots based on terminal command output
|
||||||
|
WWW= https://github.com/homeport/termshot
|
||||||
|
|
||||||
|
LICENSE= MIT
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
USES= go:modules
|
||||||
|
GO_MODULE= github.com/homeport/termshot
|
||||||
|
GO_TARGET= ./cmd/${PORTNAME}
|
||||||
|
GO_BUILDFLAGS= -tags noupdater \
|
||||||
|
-ldflags "\
|
||||||
|
-s -w \
|
||||||
|
-X ${GO_MODULE}/internal.Version=${DISTVERSION}"
|
||||||
|
|
||||||
|
PLIST_FILES= bin/${PORTNAME}
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
5
textproc/termshot/distinfo
Normal file
5
textproc/termshot/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
TIMESTAMP = 1663936620
|
||||||
|
SHA256 (go/textproc_termshot/termshot-v0.2.4/v0.2.4.mod) = 4cfbae01334e0617458a92ce19e4c1a1b06a85200ec806b6cd94e150ff733af8
|
||||||
|
SIZE (go/textproc_termshot/termshot-v0.2.4/v0.2.4.mod) = 1337
|
||||||
|
SHA256 (go/textproc_termshot/termshot-v0.2.4/v0.2.4.zip) = c4eeb410a5ce01c21632578c1c7dcb208e9e98e708d4c2cd75f372899547b99a
|
||||||
|
SIZE (go/textproc_termshot/termshot-v0.2.4/v0.2.4.zip) = 703133
|
9
textproc/termshot/pkg-descr
Normal file
9
textproc/termshot/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Terminal screenshot tool, which takes the console output and renders an output
|
||||||
|
image that resembles a user interface window. The idea is similar to what
|
||||||
|
carbon.now.sh, instaco.de, or codekeep.io/screenshot do. Instead of applying
|
||||||
|
syntax highlight based on a programming language, termshot is using the ANSI
|
||||||
|
escape codes of the program output. The result is clean screenshot (or
|
||||||
|
recreation) of your terminal output. If you want, it has an option to edit the
|
||||||
|
program output before creating the screenshot. This way you can remove unwanted
|
||||||
|
sensitive content. Like time, watch, or perf, just place termshot before the
|
||||||
|
command and you are set.
|
Loading…
Add table
Reference in a new issue