Console is a hlper for displaying super-ASCII strings on the console. It turns out that all these funny foreign characters not only take up strange numbers of bytes, they also take up strange numbers of columns on the screen when you print them. Console procides utility methods for determining the display width of a string, and for taking a substring in a display-width-centric manner.
Required Ruby Version
None
Authors
William Morgan
Versions
- 1.36.0 June 02, 2026 (37 KB)
- 1.35.1 May 19, 2026 (35 KB)
- 1.35.0 May 19, 2026 (31 KB)
- 1.34.3 February 11, 2026 (30.5 KB)
- 1.34.2 October 21, 2025 (30.5 KB)
- 0.1 May 11, 2010 (6.5 KB)