Skip to content

wtswidth v1.3

Latest

Choose a tag to compare

@german-one german-one released this 04 Mar 19:52
· 1 commit to main since this release

Windows Terminal 1.26 introduces a new global compatibility setting. Users can now specify whether characters with ambiguous width occupy one column (narrow) or two columns (wide).
Therefore, a thin configuration layer has been added to the wtswidth library, allowing users to customize measuring, depending on their preferences.

Changes:

  • add wtsgetambwidth() and wtssetambwidth() functions to the API
  • use int instead of size_t to always make the length a 32-bit value; this simplifies interaction with managed code
  • releases for Windows now also contain the compiled library (DLL + LIB files)
  • [app syntax] requires the first argument to be either 1 (narrow) or 2 (wide) for the ambiguous character width, before any string is passed to the app

Related Windows Terminal PR:
microsoft/terminal#19864