This guide will show how simple it is to center text in a terminal or a text file using the Go standard and external libraries. We will create two functions, NCenter, which provides for a width parameter, and a Center func that will determine the center placement based on the width of the terminal screen.… Continue reading Center text in a terminal with Go.
Tag: terminal
Way too slow sudo
I recently suffered an unusual issue in the Linux terminal. Any commands prefixed with sudo would take 10 to sometimes 15 seconds to execute, while all other bash and terminal commands would operate at speed. Initially, I thought the issue was related to a Ubuntu Server install running in VMware Fusion on a low powered… Continue reading Way too slow sudo
Make the Windows Command Prompt, Linux-like
In this entry I will explain my method of improving the Windows Command Prompt and its command-line. To turn it from a crude shell prompt into an ANSI coloured interface with a useful set of tools that can commonly be found on Linux and Mac terminals. We will also integrate a number of optional popular programming… Continue reading Make the Windows Command Prompt, Linux-like
You must be logged in to post a comment.