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. 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.1 May 11, 2010 (6.5 KB)
Show all versions (90 total)

SHA 256 checksum