Senin, 10 Mei 2021

Test Your Typing Speed in Linux Terminal With Ttyper

There are several ways to test and improve your typing speed. You can use online tools, install dedicated applications on the desktop or test in the Linux terminal.

Linux terminal? That’s right. From browsing internet to playing games, you can do so many fun things in the mighty Linux terminal. Testing your typing speed is one of them.

Ttyper: Terminal-based typing test tool

Ttyper is a tool written in Rust that allows you to practice your touch typing.

It gives a random selection of some of the most common English words. The correct typed words are highlighted in green and the incorrect ones in red and this happens in real time. You can press backspace and correct the words but that will contribute to a reduced score.

ttyper typing speed test linux

When you finish typing all the displayed words, you get the result with your typing speed in words per minute, accuracy and number of correct keypresses. You can use Ctrl+C to exit Ttyper if you are not in a mood for typing the entire section.

ttyper typing test result

You can see Ttyper in action in this GIF recorded by the developer.

ttyper

By default, you get 50 words to practice but you may expand that with command options. You can also use a custom text file and use its content to practice typing.

Command Contents
ttyper 50 of the 200 most common English words
ttyper -w 100 100 of the 200 most common English words
ttyper -w 100 -l english1000 100 of the 1000 most common English words
ttyper text.txt contents of test.txt split at whitespace

Ttyper also focuses on developers. It supports several programming languages and if you are a programmer, you may use it to test and improve your typing while you code.

ttyper typing test html

As of now, C, Csharp, Go, HTML, Java, JavaScript, Python, Ruby and Rust languages are supported.

You may change the language in the following manner:

ttyper -l html

By the way, the double ‘T’ in ‘Ttyper’ is not a typo. It is deliberate as TTY (TeleTYpewriter) represent the terminal emulator, an indication that it is a terminal tool.

Recommended Read:

Installing Ttyper on Linux

Ttyper is built with Rust and you can install it on any Linux distribution that has support for Rust programming language and its Cargo package manager.

Cargo is the Rust equivalent to Python’s PIP. There is a central repository and you can download and install the Rust packages along with its dependencies easily with Cargo.

I am going to add the instructions for installing Cargo on Ubuntu-based Linux distributions. You should be able to install it using your distribution’s package manager.

Please make sure that you have universe repository enabled on Ubuntu. You can install Cargo with this command:

sudo apt install cargo

It will install Cargo package manager along with rustc package for Rust language.

Once you have Cargo installed on your system, use it install Ttyper with this command:

cargo install ttyper

This will add an executable rust file in .cargo/bin directory under your home directory. It will be mentioned at the end of the output of the package installation.

installing ttyper linux

You may switch to this directory:

cd ~/.cargo/bin

and run the ttyper executable:

ttyper

Of course, it’s not very convenient. This is why you should add this directory to the PATH variable. If you are familiar with the Linux command line, you can easily do that.

Unfortunately, I cannot give you the exact commands here because you need to provide the absolute PATH to this directory and that path name will differ based on your username. For example, for me, it is /home/abhishek/.cargo/bin. This absolute PATH will be different for you.

I advise reading about absolute and relative path for more clarity on this topic.

You can uninstall Ttyper by removing the binary file or use Cargo command in this manner:

cargo uninstall ttyper

If you like this nifty terminal tool, star it on GitHub to appreciate the developer’s effort.

As I mentioned at the beginning of this article, you can do a lot of cool stuff in the terminal. If you want to surprise your colleagues, maybe you can try making presentation slides entirely in the Linux terminal.



from It's FOSS https://ift.tt/2RJhYLT
via IFTTT

Tidak ada komentar:

Posting Komentar