[][src]Function bear_lib_terminal::terminal::measure

pub fn measure(value: &str) -> i32

Calculate the argument's width/height without printing it.

Whether the function returns the width or the height depends on the presence of the bbox tag in the string.

Refer to the docs for the terminal_measure() C API function, note, that the return type therein is incorrect.