some dancing gophers in your terminal



some dancing gophers in your terminal, my followup to terminalman.. dancing gophers

heres how I make these files.. find a nice image, or animated gif that you want to use in your terminal. download and compile pixterm -->

then find your image, split it into the individual frames (gif2jpeg or whatever tool you want to use)

use pixterm to display a frame in your terminal... where frame.jpg is on of your image frames such as:

./pixterm -s 2 -tc 25 -tr 25 frame.jpg

if it looks good, run

./pixterm -go -s 2 -tc 25 -tr 25 frame1.jpg >> frames.go

./pixterm -go -s 2 -tc 25 -tr 25 frame2.jpg >> frames.go

.. run the command for each frame in your animation, it saves it all in the frames.go file..

the frames.go file, convert the fmt.Printf("") statements to a string array, use your text editors column edit function (shift + right click in sublime) to easily edit the file into this format:

   var animationFrames = []string {

replace the "" with the ansi-escaped Printf strings that pixterm generates.. you should now have a string array of each animation frame.

To figure out your individual frame sizes.. use a helper function such as

   func drawFrameIndex() {
       for i,v := range animationFrames {
          fmt.Printf("%d %v",i,v)

Then run it and it will print out all the frames, with the index values.. figure out the start/end ranges of each frame (I do it by hand but I suppose you could do it programmatically)..

as for the rest.. check out the code to see how it draws the frames based on the counters. It just does a lookup on the initial index and adds the frame length, and draws it at the l,c (line,column or x,y) on the terminal.

I (heart) my CLI
Pi-fetch - get a summary of your pi-hole stats from your terminal

pi-fetch get a summary of your pi-hole stats from your terminal _ ___ _ _ ___|_|___| _|___| |_ ___| |_ | . | |___| _| -_| _

wise 0 Jan 9, 2022
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.

Stonks is a terminal based stock visualizer and tracker. Installation Requirements: golang >= 1.13 Manual Clone the repo Run make && make install Pack

Eric Moynihan 510 Jun 21, 2022
Are you programming and suddenly your stomach is rumbling? No problem, order your Ifood without leaving your favorite text editor ❤️

vim-ifood Você ta programando e de repente bateu aquela fome? Sem problemas, peça seu Ifood sem sair do seu editor de texto favorito ❤️ Are you progra

Felipe Volpone 4 Jun 2, 2022
gomerge is a tool to quickly bulk merge several pull requests from your terminal.

Gomerge is a tool to quickly enable you to bulk merge Github pull requests from your terminal. The intention of this tool is to simplfy, and eventually automate the merging of github pull requests. This tool should be able to run on most systems.

Cian Gallagher 31 Mar 24, 2022
YouTube client on your terminal

MeowTube YouTube client on your terminal Table of Contents About Getting Started Usage Contributing About MeowTube is a CLI (Command Line Interface) t

Abdul Fattah Ikhsan 25 Feb 1, 2022
🎄 A Christmas tree right from your terminal!

ctree ?? A Christmas tree right from your terminal! ?? Demo ⌛ No Refresh Don't want the tree to refresh every 2 seconds? Easy! Just add the --no-refre

Matthew Gleich 37 Jan 3, 2022
❓🖼 Find the anime scene by image using your terminal

What Anime CLI ❓ ?? > This application is basically a ?? wrapper around PREVIEW Usage ?? Get Anime By Image File ?? what-anime file

Ilya Revenko 682 Jun 16, 2022
Pi-hole data right from your terminal. Live updating view, query history extraction and more!

Pi-CLI Pi-CLI is a command line program used to view data from a Pi-Hole instance directly in your terminal.

Reece Mercer 41 Apr 26, 2022
Draw images in your ANSI terminal with true color

___ _____ ____ / _ \/ _/ |/_/ /____ ______ _ Made with love by Eliuk Blau / ___// /_> </ __/ -_) __/ ' \

Eliuk Blau 885 Jun 30, 2022
The personal information dashboard for your terminal

WTF (aka 'wtfutil') is the personal information dashboard for your terminal, providing at-a-glance access to your very important but infrequently-need

WTFUtil 13.5k Jun 29, 2022
Advanced ANSI style & color support for your terminal applications

termenv lets you safely use advanced styling options on the terminal. It gathers information about the terminal environment in terms of its ANSI & col

Christian Muehlhaeuser 1.1k Jun 29, 2022
GIFs in your terminal

gifwrap GIFs in your terminal. Install Download the latest binary or install with Go: go install[email protected] Usage Usa

Liam Galvin 36 Jun 15, 2022
Share your terminal as a web application

GoTTY - Share your terminal as a web application GoTTY is a simple command line tool that turns your CLI tools into web applications. Installation Dow

Iwasaki Yudai 16.7k Jun 21, 2022
Typing test in your terminal

Typer Typing test in your terminal Installation go get Usage To begin a typing test simply type typer. This wil

Maas Lalani 257 Jun 29, 2022
🐙🐱🖥️ GitHub stats in your terminal

?? ?? ??️ octotui - GitHub stats in terminal Inspired by metrics & github-profile-summary-cards & github-tui ?? Data - irevenko/octostats TUI - termui

Ilya Revenko 199 Jun 21, 2022
Slack client for your terminal

slack-term A Slack client for your terminal. Installation Binary installation Download a compatible binary for your system. For convenience, place sla

JP Bruins Slot 6.1k Jun 29, 2022
espnwrapper to track real time scores for your fav match... in a terminal while working.

An espncricinfo wrapper written in go to track scores in real time and in the cmd/cli you can find the Command Line Interface wrapped over this wrapper.

Vishal Sharma 5 Mar 13, 2022
Live streaming from your terminal

TStream - Streaming from terminal ??‍♂️ Come stream at How to start streaming Please refer to this link Upcoming features One command to

Quang Ngoc 220 Jun 8, 2022
Connect to a Twitch channel's chat from your terminal

CLI tool to connect to Twitch chat

Aaron Tye 17 Jun 17, 2022