Install ruby-unicode-display-width by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-unicode-display-width
Description:
Determines the monospace display width of a string in Ruby
When printed to the screen, the length of the string is usually equal to the number of cells it occupies. However, there are categories of characters that occupy 2 cells (full-wide), and others that occupy 0. This library provides functions similar to wcwidth() and wcswidth() known from C, to determine the monospace display width of a string.
Homepage: https://github.com/janlelis/unicode-display_width
Version: 1.1.3-1
Section: universe/ruby