@@ -27,13 +27,13 @@ impl Capabilities {
27 /// on the $TERM environment variable. If detection fails, returns
27 /// on the $TERM environment variable. If detection fails, returns
28 /// a default value where no capability is supported.
28 /// a default value where no capability is supported.
29 pub fn from_env_or_default() -> Self {
29 pub fn from_env_or_default() -> Self {
30− match cxterminfo::terminfo::TermInfo::from_env() {
30+ match termini::TermInfo::from_env() {
31 Err(_) => Capabilities::default(),
31 Err(_) => Capabilities::default(),
32 Ok(t) => Capabilities {
32 Ok(t) => Capabilities {
33 // Smulx, VTE: https://unix.stackexchange.com/a/696253/246284
33 // Smulx, VTE: https://unix.stackexchange.com/a/696253/246284
34 // Su (used by kitty): https://sw.kovidgoyal.net/kitty/underlines
34 // Su (used by kitty): https://sw.kovidgoyal.net/kitty/underlines
35− has_extended_underlines: t.get_ext_string("Smulx").is_some()
35+ has_extended_underlines: t.extended_cap("Smulx").is_some()
36− || *t.get_ext_bool("Su").unwrap_or(&false)
36+ || t.extended_cap("Su").is_some()
37 || vte_version() >= Some(5102),
37 || vte_version() >= Some(5102),