You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn main() {
let capability = tigetstr("idontexist");
if capability.is_empty() {
println!("empty");
} else {
println!("nonempty");
}
}
tigetstr returns (char *)-1 if the capability doesn't exist, and a null pointer if the capability isn't supported. Neither one seems to be supported by the ncurses-rs wrapper.
The text was updated successfully, but these errors were encountered:
A simple attempt to use it segfaults:
tigetstr returns (char *)-1 if the capability doesn't exist, and a null pointer if the capability isn't supported. Neither one seems to be supported by the ncurses-rs wrapper.
The text was updated successfully, but these errors were encountered: