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. 1.36.0 June 02, 2026 (37 KB)
  2. 1.35.1 May 19, 2026 (35 KB)
  3. 1.35.0 May 19, 2026 (31 KB)
  4. 1.34.3 February 11, 2026 (30.5 KB)
  5. 1.34.2 October 21, 2025 (30.5 KB)
  6. 0.2.1 May 11, 2010 (7.5 KB)
Show all versions (90 total)

SHA 256 checksum