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

truncate_to_width

Function truncate_to_width 

Source
pub fn truncate_to_width(s: &str, max_width: usize) -> String
Expand description

Truncate a string to fit within max_width terminal cells. Appends “…” if truncated.