⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

char_width

Function char_width 

Source
pub fn char_width(ch: char) -> u8
Expand description

Get the display width of a character in terminal cells.

Returns 2 for wide (CJK) characters, 0 for zero-width characters (combining marks, control chars), and 1 for everything else.