Console is a helper class for displaying super-ASCII strings on the console. Console is needed when you want to mix two-column (e.g. Chinese) and single-column (e.g. ASCII) characters and know how much horizontal realestate the result takes on the screen. This is generally necessary when you want to have internationalization support in a console program. Console currently provides utility methods for determining the display width of a string, and for taking a substring based on display position and display width.
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.2.2 May 19, 2010 (7.5 KB)