Linux Candy

Linux Candy: globe – a spinning ASCII Earth in your terminal

Linux Candy is a series of articles covering interesting eye candy software.

How many characters does it take to draw a planet? With globe running in a terminal, a scattering of dots and a few dense patches of @ signs are enough to pick out a coastline. The clever bit comes when that coastline turns away from you. A shape that was easy to recognise a moment ago narrows to a sliver and disappears around the edge of the Earth.

Installation

On Arch Linux and CachyOS, globe is available from the AUR. You can install it with yay.

$ yay -S globe-cli

I installed globe with Cargo for this review. If you have Rust and Cargo installed, you can use the same command.

$ cargo install globe-cli

Terminal output from Cargo building and installing globe-cli

The package is called globe-cli, but the command to run is globe. The project also offers a prebuilt 64-bit x86 Linux executable on its releases page.

In Operation

I’d start in interactive mode. It gives you a chance to get your bearings before setting anything in motion.

$ globe -i

Earth drawn in ASCII characters in globe’s interactive terminal view

Use the arrow keys to pan around the Earth, or h, j, k and l if your fingers are accustomed to Vim. Page Up zooms in and Page Down zooms out. Try following a coastline towards the edge of the globe, then press n to switch on the night side. This is my favourite control. With the whole surface lit, the coastline carries most of the picture. With part of the Earth in shadow, the curve of the planet is easier to see.

There are two motions to play with. The + and - keys change how fast the Earth turns on its axis. The comma and full stop keys change how fast the camera travels around it. Try each pair on its own first. Press q when you’re ready to return to the shell.

For a spare terminal window, I prefer screensaver mode. Both rotation speeds default to zero, so globe -s on its own gives you a stationary Earth. The following command switches on the night side, sets the camera moving and starts the Earth spinning.

$ globe -s -n -c 2 -g 10

ASCII coastlines rotating into view as the camera moves around the partly lit Earth

Press any key to leave the screensaver. There’s also an experimental --pipe mode which accepts a sequence of coordinate pairs on standard input. The camera moves from one location to the next, so you can choreograph a little tour of your own.

Run globe -h for the full list of options, including the refresh rate, starting location and custom textures.

globe command-line help listing display modes, rotation speeds, camera settings and texture options

Summary

What I like about globe is that you can see the trick. Up close, the land breaks up into individual characters. Pull back a little and those same marks resolve into continents again. I’d keep the camera movement gentle and the night side switched on. Half the pleasure is spotting a familiar outline before it turns out of view.

Website: github.com/adam-wier/globe
Developer: Adam Wier
License: GNU General Public License v3.0

globe is written in Rust. Learn Rust with our recommended free books and free tutorials.


Complete list of articles in this series:

Linux Candy
ASCIIQuariumEmbrace marine life from the terminal with beautiful ASCII art
ASCII Art ConverterA small utility that converts images into ASCII art
asciifyTurn images into attractive ASCII art
ascii_moonDisplays the moon phase
BobRossQuotesCollection of quotes from Bob Ross
BoxesCommand line ASCII boxes
BuohOnline strips comics reader
cacafireColor ASCII fire
catclockxclock with an enhanced cat mode
catspeakLike cowsay but catty
cbonsaiGenerate bonsai trees in the terminal
christmasfetchFestive cheer on the desktop
chucknorrisChuck Norris jokes in your terminal
ClairvoyantLike a magic 8-ball inspired fortune teller
cornyjokesCorny jokes for the terminal
CMatrixncurses program that simulates the display from “The Matrix”
ctreeA Christmas tree right on your terminal
cutieasciiDisplays random ASCII art emojis
dogeSimple motd script
eDEX-UISci-fi computer terminal emulator and system monitor
emojSimple tool that to find suitable emojis for pasting to your clipboard
EmoteModern popup emoji picker
EvolvotronInteractive generative art
FantasceneDynamic wallpaper changer
FondoFind beautiful wallpapers from Unsplash
Fractal ArtDesktop wallpaper generator
gtiTypo-based curio inspired by Steam Locomotive
HidamariPython-based app that offers video wallpaper for Linu
HollywoodFill your console with Hollywood melodrama technobabble
lavatLava lamp in your terminal
lifecyclerAquarium right in your terminal
linuxwaveGenerate music from the entropy of Linux
Lolcat++Rainbows and unicorns
MemeFun tool to create memes
No More SecretsRecreates the data decryption effect from the Sneakers movie
nookPlays Animal Crossing hourly themes on the hour
nyancatTerminal-based Pop Tart Cat Animation
onekoAnimal chasing fun
Picture Of The DayYour daily wallpaper
pipes.shAnimated pipes terminal screensaver
ponysaycowsay reimplemention for ponies
projectMMusic visualizer originally based on Milkdrop
pscircleA different take on the venerable ps command
PyBonsaiGenerates procedural ASCII art trees
pyjokesOne line jokes for programmers
PywalGenerate color schemes on the fly (not actively developed)
RelaxatorRelax to soothing sounds
ricksayRick and Morty quotes of the day
Rusty AquariumMonitoring by visualization
ShimeLinuxAnimated desktop pets
shuffleASCII art with a cool shuffle effect
sigyeCustomizable terminal clock with Pomodoro functionality
Steam LocomotiveC program written in 295 lines. It's harmless fun
tanukiHourly animal crossing vibes
TernimalAnimated lifeform in the terminal
terminal-parrotParty parrot time
tetrisTile-matching puzzle video game in your terminal
VarietyWallpaper manager with many desktops and wallpaper sources
WallGenGenerate HQ poly wallpapers with a few arguments.
WallpaperDownloaderDownload, change, and manage wallpapers
WallPickerModern GTK4/Libadwaita wallpaper picker
wallustCreate 16 color palettes
walrsFast colorscheme generator
WSelectorBrowse, download, and set wallpapers from Wallhaven.cc
xcowsayDisplays a cow on your desktop with message
XDecorationsAdd some festive cheer to your desktop
XScreenSaverFramework and collection of screensavers
yosayLike cowsay but with less cow
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted