Skip to main content

selectlist

Function selectlist 

Source
pub fn selectlist(items: &[&str], start: usize) -> usize
Expand description

Select-menu display. Port of selectlist(LinkList l, size_t start) from Src/loop.c:347 — formats the numbered menu the C source uses for select var in words. Picks columns automatically when columns == 0, mirroring the C source’s terminal-width auto-detection. WARNING: param names don’t match C — Rust=(items, start) vs C=(l, start)