30.1 Problem

In this exercise your job is to write a terminal based application that measures your (touch) typing speed. The end result should resemble the one presented in the GIF below.

Figure 14: A terminal based application that measures typing speed (animation works only in an HTML document).

Your program should:

To make it easier, you may assume it to always operate on a short line of text (let’s say up to 50 characters long) composed only of the characters from the standard Latin alphabet encoded by ASCII.



CC BY-NC-SA 4.0 Bartlomiej Lukaszuk