Skip to main content

COLUMNS (int)

Laurence MorganLess than 1 minute

COLUMNS (int)

Character width of terminal

Description

COLUMNS returns the cell width of the terminal.

Some characters might be more than or less than 1 (one) cell in width, such as Chinese logograms and zero-width joiners. Whereas one ASCII character is the same width as one terminal cell.

This is a reserved variable so it cannot be changed.

Synonyms

  • columns
  • COLUMNS

See Also


This document was generated from gen/variables/COLUMNS_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan