Are you bored at work? Let’s have fun! The other day I came across this cool utility called Globe-cli. As the name indicates, globe-cli is a globe generator of the ASCII globe command line to display the ASCII globe in your terminal. You can rotate the globe in all directions and use the mouse or keyboard to zoom in or out on a particular area of the globe. Globe-cli is written in the programming language Rust and the source code is freely available under GPLv3. Let’s just run the ASCII globe in a terminal with the globe-cli utility under Linux.
Installing globe clients on Linux
Because the Globe clients are written in the language of Rust, we can install them with the Cargo Package Manager. Make sure you have installed the Rust programming language in your Linux box, as described in the following link
After installing Rust, run the following command to install Globe clients
Globe-cli is also available in the AUR, so you can install globe-cli under Arch Linux with any AUR support program like Yay.
$ yay – globe-cli
Run an ASCII sphere in the terminal using the Globusclient programs.
To launch the ASCII sphere in the terminal window, run it:
Running ASCII Globe in the terminal using the globe wedge utilityRunning ASCII Globe in the terminal using the globe wedge utilityRunning ASCII Globe in the terminal using the globe wedge utilityRunning ASCII Globe in the terminal using the globe wedge utility
Here the -s flag refers to the screensaver mode.
If you look at the static globe, it’s a little boring. Let’s turn the world around so it looks livelier than it is down there:
$ globe -sc5
Now the world will begin to turn. Press any button to stop rotation.
Start of ASCII sphere in terminal with sphere
There you go,
- -s refers to the screen saver mode.
- -c refers to the initial rotation speed of the camera. In our case we used camera speed 5. Set the -c flag to a higher or lower value to increase or decrease speed. The default value is 0.
You can also turn to the night side and rotate the sphere around its own axis:
$ globe -snc5 -g20
There you go,
- -n refers to night mode.
- -g means the initial speed of the earth’s rotation. In this case, we used 20. To make the world run faster, use a higher value. In the same way, you can use a lower value to reduce the speed.
Can a certain area be enlarged or reduced? What about manual rotation? This is also possible. Go to interactive mode to zoom in or rotate the globe with the keyboard or mouse:
$ Globe -i
Use the up/down and left/right arrows to go around the world. You can also press and hold the left mouse button and drag in any direction to rotate the globe. Use the mouse wheel to zoom in and out.
The developer of Globe-cli has added a Vim-like navigation for the interactive mode. So you can use the Vim shortcuts h, j, k, l to rotate the globe.
Putting an ASCII bulb online
Globe clients support various other options, such as setting the refresh rate, changing the globe model and applying custom textures, etc. For more information, please refer to the Help section.
Use the -h, – help flag to display the help section:
Globe – Help
Globe Help Section :
adamsky < [protected by email]>
Send the ASCII globe to your terminal.
-i, -interactive interactive mode (input enabled)
-s, -screen protection mode (input enabled)
-h, –aid Print help
-n, -night Display of the night sphere page
-p, –pipe Read stdin coordinates and display them on the sphere
-V, –version Print version information
-c, – camera rotation speed Camera rotation speed of the first globe [default: 0]
-z, – camera zoom Initial zoom of the camera [default: 1.7]
-f, – Animation speed of the focusing target [Standard: 1]
-g, – Rotation speed of the first globe [Standard: 0]
-l, – Coordinates of the first location [Standard: 0,4,0,6]
-r, – Update rate per second [Standard: 60]
-t, – Display of the built-in spherical template [Standard: : Floor]
–texture Apply user defined texture of the file
–texture-night Apply user defined texture to the night side of the file
Did you know we can launch a world map into the terminal? Yeah, you read it right! Discover MapSCII, Braille and ASCII world map view for your xterm-compatible terminals. See the following manual for more information: