All Projects → homeport → termshot

homeport / termshot

Licence: MIT license
Creates screenshots based on terminal command output

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to termshot

html-to-svg
svg screenshot of web pages (saves the given URL to an SVG file)
Stars: ✭ 110 (-3.51%)
Mutual labels:  screenshot
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (-44.74%)
Mutual labels:  screenshot
ScreenshotPlugin
A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.
Stars: ✭ 32 (-71.93%)
Mutual labels:  screenshot
screenshot
This library helps to take screenshot dynamically
Stars: ✭ 64 (-43.86%)
Mutual labels:  screenshot
normcap
OCR powered screen-capture tool to capture information instead of images
Stars: ✭ 441 (+286.84%)
Mutual labels:  screenshot
Screenbar
A MacOS menubar app for automating screenshots
Stars: ✭ 93 (-18.42%)
Mutual labels:  screenshot
electron screenshot
Node 调取微信 dll 截图
Stars: ✭ 44 (-61.4%)
Mutual labels:  screenshot
poster
浏览器端video视频截图,视频封面获取
Stars: ✭ 42 (-63.16%)
Mutual labels:  screenshot
webshot
Screenshot websites as a service.
Stars: ✭ 84 (-26.32%)
Mutual labels:  screenshot
1click-webpage-screenshot
Entire page Screenshot extension for Google Chrome. I'm developing open source extension for Google Chrome. All extension are free for use. Let's make Chrome great again!
Stars: ✭ 432 (+278.95%)
Mutual labels:  screenshot
Selenium-Foundation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Stars: ✭ 51 (-55.26%)
Mutual labels:  screenshot
term
终端输出控制
Stars: ✭ 38 (-66.67%)
Mutual labels:  ansi-colors
dot-screencap
A screencapturing library
Stars: ✭ 31 (-72.81%)
Mutual labels:  screenshot
kolorist
A tiny utility to colorize stdin/stdout
Stars: ✭ 160 (+40.35%)
Mutual labels:  ansi-colors
line
An easy to use golang package for stylizing terminal output
Stars: ✭ 26 (-77.19%)
Mutual labels:  ansi-colors
nextshot
A simple tool for taking screenshots on Linux and sharing via Nextcloud
Stars: ✭ 37 (-67.54%)
Mutual labels:  screenshot
screenshot
A screenshot API to convert web to image or PDF. Supports desktop and mobile views.
Stars: ✭ 108 (-5.26%)
Mutual labels:  screenshot
mozscreenshots
Take screenshots of Mozilla applications in various UI configurations
Stars: ✭ 17 (-85.09%)
Mutual labels:  screenshot
screenie-server
A Node server with a pool of Puppeteer (Chrome headless) instances for scalable screenshot generation.
Stars: ✭ 19 (-83.33%)
Mutual labels:  screenshot
ShaderGraphToPNG
Screenshots a Shader Graph in multiple sections, stitches them together and saves the result as a PNG
Stars: ✭ 54 (-52.63%)
Mutual labels:  screenshot

termshot License Go Report Card Build Codecov PkgGoDev Release

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.

For example, termshot --show-cmd -- lolcat -f <(figlet -f big foobar) will create a screenshot which looks like this: example

Installation

macOS

Use homebrew to install termshot: brew install homeport/tap/termshot

Binaries

The releases section has pre-compiled binaries for Darwin, and Linux.

Notes

  • Since both termshot and your command can have command line flags, it is recommended to use -- to separate them.

    termshot --edit -- tool --apply --force
  • If you want to run a command and pipe the output into another, you have to use quotes to make this clear on the command line.

    termshot --show-cmd -- "figlet foobar | lolcat"
  • In order to work, termshot uses a pseudo terminal for the command to be executed. This means you can invoke a fully interactive shell and capture the entire output. The screenshot is created once you terminate the shell.

    termshot /bin/zsh
  • Please note: This project is work in progress. Although a lot of the ANSI sequences can be parsed, there are definitely commands in existence that create output that cannot be parsed correctly, yet. Also, commands that reset the cursor position are known to create issues.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].