unichar_width


Description:


public int unichar_width (unichar ch)

Return the terminal cell width termbox uses for ch.

This wraps `tb_wcwidth()` so layout code can use the same width calculation termbox uses when rendering cells. It does not require an initialized Terminal.

Parameters:

ch

a Unicode code point.

Returns:

the terminal cell width, or a negative value for non-printable code points.


Namespace: Tbg
Package: termbox-glib